mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Avoid copying LiveInterval, this could lead to a double-delete
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -319,7 +319,7 @@ void A57ChainingConstraint::addInterChainConstraint(PBQPRAGraph &G, unsigned Rd,
|
|||||||
|
|
||||||
static bool regJustKilledBefore(const LiveIntervals &LIs, unsigned reg,
|
static bool regJustKilledBefore(const LiveIntervals &LIs, unsigned reg,
|
||||||
const MachineInstr &MI) {
|
const MachineInstr &MI) {
|
||||||
LiveInterval LI = LIs.getInterval(reg);
|
const LiveInterval &LI = LIs.getInterval(reg);
|
||||||
SlotIndex SI = LIs.getInstructionIndex(&MI);
|
SlotIndex SI = LIs.getInstructionIndex(&MI);
|
||||||
return LI.expiredAt(SI);
|
return LI.expiredAt(SI);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user