From 77cc7edf3e62b55b23ab2e564896146b64c950e9 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 18 Dec 2006 21:56:29 +0000 Subject: [PATCH] For PR1042: Fix a thinko. We want to check the second case if the first cast *didn't* trigger. llvm-svn: 32657 --- llvm/lib/VMCore/Verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index b26248b897da..8563216c5068 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/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) {