commit | ffba3de0f51e0d93dcc692e9af3853de8ede9dd8 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Tue Apr 28 06:24:09 2009 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Tue Apr 28 06:24:09 2009 +0000 |
tree | 38f3a483eafd7f9dd1691dae97813824d08ed524 | |
parent | 8cc727232d75b45605974dd5d0e1e46359aeefe8 [diff] [blame] |
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
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 @@ 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;