diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-18 21:56:29 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-18 21:56:29 +0000 |
commit | d71b620c6c0977f1b73f4aaf7d5106a567c87ff9 (patch) | |
tree | 8c7dbae483c3ed2162f0a75e54eb343f4b01c4aa /lib/VMCore/Verifier.cpp | |
parent | 3ef39ca6a119caced345e35204e170ee3ad9aa29 (diff) | |
download | llvm-d71b620c6c0977f1b73f4aaf7d5106a567c87ff9.tar.gz llvm-d71b620c6c0977f1b73f4aaf7d5106a567c87ff9.tar.bz2 llvm-d71b620c6c0977f1b73f4aaf7d5106a567c87ff9.tar.xz |
For PR1042:
Fix a thinko. We want to check the second case if the first cast *didn't*
trigger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Verifier.cpp')
-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 b26248b897..8563216c50 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -921,7 +921,7 @@ void Verifier::visitInstruction(Instruction &I) { // If it is used by something non-phi, then the other case is that // 'OpBlock' dominates all of its predecessors other than the // invoke. In this case, the invoke value can still be used. - if (Bad) { + if (!Bad) { Bad = false; for (pred_iterator PI = pred_begin(OpBlock), E = pred_end(OpBlock); PI != E; ++PI) { |