diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-04-28 06:24:09 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-04-28 06:24:09 +0000 |
commit | ffba3de0f51e0d93dcc692e9af3853de8ede9dd8 (patch) | |
tree | 38f3a483eafd7f9dd1691dae97813824d08ed524 /lib/CodeGen | |
parent | 8cc727232d75b45605974dd5d0e1e46359aeefe8 (diff) | |
download | external_llvm-ffba3de0f51e0d93dcc692e9af3853de8ede9dd8.zip external_llvm-ffba3de0f51e0d93dcc692e9af3853de8ede9dd8.tar.gz external_llvm-ffba3de0f51e0d93dcc692e9af3853de8ede9dd8.tar.bz2 |
Fix PR4034. Bug in LiveInterval::join when it's compacting new valno's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index c34b628..9dee892 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -458,7 +458,7 @@ void LiveInterval::join(LiveInterval &Other, const int *LHSValNoAssignments, for (unsigned i = 0; i < NumNewVals; ++i) { VNInfo *VNI = NewVNInfo[i]; if (VNI) { - if (i >= NumVals) + if (NumValNos >= NumVals) valnos.push_back(VNI); else valnos[NumValNos] = VNI; |