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
This commit is contained in:
Cameron Zwarich 2010-12-27 22:08:42 +00:00
parent 2e12f1ac6e
commit c3ab20e62e

View File

@ -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) {