projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63295d8
)
Avoid copying LiveInterval, this could lead to a double-delete
author
David Blaikie
<dblaikie@gmail.com>
Tue, 3 Mar 2015 22:25:48 +0000
(22:25 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Tue, 3 Mar 2015 22:25:48 +0000
(22:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231154
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/AArch64/AArch64PBQPRegAlloc.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp
b/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp
index 4690177d02950c76ae29546b2428a60c684f0bf6..5394875a6bc12f96ef219bddf8f9fafe56dcea05 100644
(file)
--- a/
lib/Target/AArch64/AArch64PBQPRegAlloc.cpp
+++ b/
lib/Target/AArch64/AArch64PBQPRegAlloc.cpp
@@
-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);
}