For PR1042:
authorReid Spencer <rspencer@reidspencer.com>
Mon, 18 Dec 2006 21:56:29 +0000 (21:56 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 18 Dec 2006 21:56:29 +0000 (21:56 +0000)
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

lib/VMCore/Verifier.cpp

index b26248b897daf72a255569368afe480607053e86..8563216c5068034c133a7badaa7e87ec4a2639da 100644 (file)
@@ -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) {