From: Rafael Espindola Date: Sun, 26 Feb 2012 02:14:25 +0000 (+0000) Subject: Don't call dominates on unreachable instructions. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8691216d913fa82cb55423356664805abf889341;p=oota-llvm.git Don't call dominates on unreachable instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151468 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index fbd43d4e775..16a57537dca 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -1648,8 +1648,8 @@ void Verifier::visitInstruction(Instruction &I) { } // Definition must dominate use unless use is unreachable! - Assert2(InstsInThisBlock.count(Op) || DT->dominates(Op, &I) || - !DT->isReachableFromEntry(BB), + Assert2(InstsInThisBlock.count(Op) || !DT->isReachableFromEntry(BB) + || DT->dominates(Op, &I), "Instruction does not dominate all uses!", Op, &I); } } else if (isa(I.getOperand(i))) {