diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-02 23:09:14 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-02 23:09:14 +0000 |
commit | 9c6e188f567f639e4a6ce0532fec5f6b003468fa (patch) | |
tree | d04a146bd3a2fab87678d99b65879cf060451393 /llvm/lib/VMCore/Verifier.cpp | |
parent | d0a1e3de3f36c4377f1abf6ccdf82e704d168c17 (diff) | |
download | bcm5719-llvm-9c6e188f567f639e4a6ce0532fec5f6b003468fa.tar.gz bcm5719-llvm-9c6e188f567f639e4a6ce0532fec5f6b003468fa.zip |
Fix visitInvokeInst to call visitTerminatorInst, and remove
a redundant check from checkInstruction.
llvm-svn: 110076
Diffstat (limited to 'llvm/lib/VMCore/Verifier.cpp')
-rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index ad104595883..4de1282caf9 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -1213,6 +1213,7 @@ void Verifier::visitCallInst(CallInst &CI) { void Verifier::visitInvokeInst(InvokeInst &II) { VerifyCallSite(&II); + visitTerminatorInst(II); } /// visitBinaryOperator - Check that both arguments to the binary operator are @@ -1419,10 +1420,6 @@ void Verifier::visitInstruction(Instruction &I) { "Only PHI nodes may reference their own value!", &I); } - // Verify that if this is a terminator that it is at the end of the block. - if (isa<TerminatorInst>(I)) - Assert1(BB->getTerminator() == &I, "Terminator not at end of block!", &I); - // Check that void typed values don't have names Assert1(!I.getType()->isVoidTy() || !I.hasName(), "Instruction has a name, but provides a void value!", &I); |