diff options
| author | Matthias Braun <matze@braunis.de> | 2013-09-06 16:44:32 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2013-09-06 16:44:32 +0000 |
| commit | b63db853500b3dcb46a96af3f2d5aec003e41d77 (patch) | |
| tree | 4352739e8a041945d9913549a7f957a17523a8e2 /lib/CodeGen/StrongPHIElimination.cpp | |
| parent | 1920156982643a1c5c28af6f4684580b516eb597 (diff) | |
| download | llvm-b63db853500b3dcb46a96af3f2d5aec003e41d77.tar.gz llvm-b63db853500b3dcb46a96af3f2d5aec003e41d77.tar.bz2 llvm-b63db853500b3dcb46a96af3f2d5aec003e41d77.tar.xz | |
avoid unnecessary direct access to LiveInterval::ranges
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190170 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 d8b287f737..79146eb374 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/lib/CodeGen/StrongPHIElimination.cpp @@ -344,7 +344,7 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction &MF) { LiveInterval &DestLI = LI->getInterval(DestReg); LiveInterval &NewLI = LI->getInterval(NewReg); - assert(DestLI.ranges.size() == 1 + assert(DestLI.size() == 1 && "PHI destination copy's live interval should be a single live " "range from the beginning of the BB to the copy instruction."); LiveRange *DestLR = DestLI.begin(); |
