forked from OSchip/llvm-project
Verify that VNI kills are pointing to existing instructions.
In this case it is essential that the kill is real because the spiller will decide to omit a spill if it thinks there is a later kill. llvm-svn: 106751
This commit is contained in:
parent
a6d75e2cf7
commit
53ccab7d1c
|
@ -1284,6 +1284,7 @@ bool LiveIntervals::anyKillInMBBAfterIdx(const LiveInterval &li,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
SlotIndex KillIdx = VNI->kills[j];
|
SlotIndex KillIdx = VNI->kills[j];
|
||||||
|
assert(getInstructionFromIndex(KillIdx) && "Dangling kill");
|
||||||
if (KillIdx > Idx && KillIdx <= End)
|
if (KillIdx > Idx && KillIdx <= End)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue