mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-18 17:59:45 +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:
parent
63295d884c
commit
5f4b9f892b
@ -319,7 +319,7 @@ void A57ChainingConstraint::addInterChainConstraint(PBQPRAGraph &G, unsigned Rd,
|
||||
|
||||
static bool regJustKilledBefore(const LiveIntervals &LIs, unsigned reg,
|
||||
const MachineInstr &MI) {
|
||||
LiveInterval LI = LIs.getInterval(reg);
|
||||
const LiveInterval &LI = LIs.getInterval(reg);
|
||||
SlotIndex SI = LIs.getInstructionIndex(&MI);
|
||||
return LI.expiredAt(SI);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user