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 | 30590f502325321958b35bec7295159e3948291a (patch) | |
tree | 38f3a483eafd7f9dd1691dae97813824d08ed524 /lib/CodeGen/LiveInterval.cpp | |
parent | b36a7ac87b232019722a3b637ffef06fd2d6b883 (diff) |
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/LiveInterval.cpp')
-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 c34b628d5f..9dee892c75 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; |