From: Chris Lattner Date: Wed, 20 Dec 2006 19:50:15 +0000 (+0000) Subject: Revert the previous patch which was incorrect. This unbreaks eon, but rebreaks X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=19591b3aaf6ee10835800faab828abb8400731e7;p=oota-llvm.git Revert the previous patch which was incorrect. This unbreaks eon, but rebreaks invoke-1.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32718 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 5983204aa05..b26248b897d 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -921,7 +921,8 @@ 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) { if (*PI != II->getParent() && !EF->dominates(OpBlock, *PI)) {