From 8691216d913fa82cb55423356664805abf889341 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 26 Feb 2012 02:14:25 +0000 Subject: [PATCH] Don't call dominates on unreachable instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151468 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Verifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))) {