summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Verifier.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-12-17 18:08:19 +0000
committerDuncan Sands <baldrick@free.fr>2007-12-17 18:08:19 +0000
commitb5a79d0eaa83baf7c73f89fedef4f865de0208d2 (patch)
tree69c622c192c7c0d449022af51063e41682da41da /llvm/lib/VMCore/Verifier.cpp
parent77b713b5d3c96e8759713769e5b2fefabc49079c (diff)
downloadbcm5719-llvm-b5a79d0eaa83baf7c73f89fedef4f865de0208d2.tar.gz
bcm5719-llvm-b5a79d0eaa83baf7c73f89fedef4f865de0208d2.zip
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). llvm-svn: 45108
Diffstat (limited to 'llvm/lib/VMCore/Verifier.cpp')
-rw-r--r--llvm/lib/VMCore/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 08f031f40ed..c083fe78107 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/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);
}
}
OpenPOWER on IntegriCloud