From: Cameron Zwarich Date: Mon, 27 Dec 2010 22:08:42 +0000 (+0000) Subject: Change an assertion to assert what the code actually relies upon. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c3ab20e62e8be9b55cce0145d02ebdd20775a53a;p=oota-llvm.git Change an assertion to assert what the code actually relies upon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122586 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index fd6e52bd1f3..c1a76a6193a 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/lib/CodeGen/StrongPHIElimination.cpp @@ -283,7 +283,7 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction& MF) { LiveInterval& DestLI = LI->getInterval(DestReg); LiveInterval& NewLI = LI->getInterval(NewReg); - assert(DestLI.containsOneValue()); + assert(DestLI.ranges.size() == 1); LiveRange* DestLR = DestLI.begin(); VNInfo* NewVNI = NewLI.getVNInfoAt(DestLR->start); if (!NewVNI) {