1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fix PR4034. Bug in LiveInterval::join when it's compacting new valno's.

llvm-svn: 70291
This commit is contained in:
Evan Cheng 2009-04-28 06:24:09 +00:00
parent a900530bf2
commit 754a0d2f9e
2 changed files with 1458 additions and 1 deletions

View File

@ -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;

File diff suppressed because it is too large Load Diff