diff options
author | Duncan Sands <baldrick@free.fr> | 2007-12-17 18:08:19 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-12-17 18:08:19 +0000 |
commit | fd7b326bea39c077eea8d378156bcf09051cc4ec (patch) | |
tree | 7eb74d7e82001116dae6ed86f61dd713c088a94f /lib/VMCore | |
parent | 9dfb11d32d302abfe8803d530138b38ddc567c60 (diff) | |
download | external_llvm-fd7b326bea39c077eea8d378156bcf09051cc4ec.zip external_llvm-fd7b326bea39c077eea8d378156bcf09051cc4ec.tar.gz external_llvm-fd7b326bea39c077eea8d378156bcf09051cc4ec.tar.bz2 |
Make invokes of inline asm legal. Teach codegen
how to lower them (with no attempt made to be
efficient, since they should only occur for
unoptimized code).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 08f031f..c083fe7 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -1123,7 +1123,7 @@ void Verifier::visitInstruction(Instruction &I) { "Instruction does not dominate all uses!", Op, &I); } } else if (isa<InlineAsm>(I.getOperand(i))) { - Assert1(i == 0 && isa<CallInst>(I), + Assert1(i == 0 && (isa<CallInst>(I) || isa<InvokeInst>(I)), "Cannot take the address of an inline asm!", &I); } } |