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 | c3ab20e62e8be9b55cce0145d02ebdd20775a53a (patch) | |
tree | 738d1e3faa57d03db52aaf07f0f6e6ce140d74d7 /lib/CodeGen/StrongPHIElimination.cpp | |
parent | 2e12f1ac6ebd49e5c41b7e9dcd802f3df40a1bc7 (diff) | |
download | llvm-c3ab20e62e8be9b55cce0145d02ebdd20775a53a.tar.gz llvm-c3ab20e62e8be9b55cce0145d02ebdd20775a53a.tar.bz2 llvm-c3ab20e62e8be9b55cce0145d02ebdd20775a53a.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r-- | lib/CodeGen/StrongPHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index fd6e52bd1f..c1a76a6193 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) { |