summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StrongPHIElimination.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2010-12-27 22:08:42 +0000
committerCameron Zwarich <zwarich@apple.com>2010-12-27 22:08:42 +0000
commit5e5cfbe8712d4a642c6134e3f85f0d6cbac72049 (patch)
tree490899457714c9089a87ecad07eaf76f43d67c9c /llvm/lib/CodeGen/StrongPHIElimination.cpp
parentcb18bfa3d2fbfab3e880ce639db4247db8c07552 (diff)
downloadbcm5719-llvm-5e5cfbe8712d4a642c6134e3f85f0d6cbac72049.tar.gz
bcm5719-llvm-5e5cfbe8712d4a642c6134e3f85f0d6cbac72049.zip
Change an assertion to assert what the code actually relies upon.
llvm-svn: 122586
Diffstat (limited to 'llvm/lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r--llvm/lib/CodeGen/StrongPHIElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp
index fd6e52bd1f3..c1a76a6193a 100644
--- a/llvm/lib/CodeGen/StrongPHIElimination.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud