mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Make sure the only user of InlineAsm's are direct calls.
llvm-svn: 25626
This commit is contained in:
parent
e9e727b2bc
commit
e930f6bafb
@ -47,6 +47,7 @@
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/ModuleProvider.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/InlineAsm.h"
|
||||
#include "llvm/Instructions.h"
|
||||
#include "llvm/Intrinsics.h"
|
||||
#include "llvm/PassManager.h"
|
||||
@ -663,6 +664,9 @@ void Verifier::visitInstruction(Instruction &I) {
|
||||
!EF->dominates(&BB->getParent()->getEntryBlock(), PredBB),
|
||||
"Instruction does not dominate all uses!", Op, &I);
|
||||
}
|
||||
} else if (isa<InlineAsm>(I.getOperand(i))) {
|
||||
Assert1(i == 0 && isa<CallInst>(I),
|
||||
"Cannot take the address of an inline asm!", &I);
|
||||
}
|
||||
}
|
||||
InstsInThisBlock.insert(&I);
|
||||
|
Loading…
x
Reference in New Issue
Block a user