mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106751 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1284,6 +1284,7 @@ bool LiveIntervals::anyKillInMBBAfterIdx(const LiveInterval &li,
|
||||
continue;
|
||||
|
||||
SlotIndex KillIdx = VNI->kills[j];
|
||||
assert(getInstructionFromIndex(KillIdx) && "Dangling kill");
|
||||
if (KillIdx > Idx && KillIdx <= End)
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user