summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-20 19:50:15 +0000
committerChris Lattner <sabre@nondot.org>2006-12-20 19:50:15 +0000
commit19591b3aaf6ee10835800faab828abb8400731e7 (patch)
tree8139d25b197b74cb0fda3c117d68b6846193b088 /lib
parent505811e9dda98d7522f524c8647ca73cc8402ba3 (diff)
downloadllvm-19591b3aaf6ee10835800faab828abb8400731e7.tar.gz
llvm-19591b3aaf6ee10835800faab828abb8400731e7.tar.bz2
llvm-19591b3aaf6ee10835800faab828abb8400731e7.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Verifier.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index 5983204aa0..b26248b897 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)) {