diff options
author | Cameron Zwarich <zwarich@apple.com> | 2010-12-27 22:08:42 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2010-12-27 22:08:42 +0000 |
commit | 5e5cfbe8712d4a642c6134e3f85f0d6cbac72049 (patch) | |
tree | 490899457714c9089a87ecad07eaf76f43d67c9c /llvm/lib/CodeGen/StrongPHIElimination.cpp | |
parent | cb18bfa3d2fbfab3e880ce639db4247db8c07552 (diff) | |
download | bcm5719-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.cpp | 2 |
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) { |