Revert "Remove the explicit SDNodeIterator::operator= in favor of the implicit default"
[oota-llvm.git] / lib / Target / AArch64 / AArch64PBQPRegAlloc.cpp
index 5394875a6bc12f96ef219bddf8f9fafe56dcea05..4690177d02950c76ae29546b2428a60c684f0bf6 100644 (file)
@@ -319,7 +319,7 @@ void A57ChainingConstraint::addInterChainConstraint(PBQPRAGraph &G, unsigned Rd,
 
 static bool regJustKilledBefore(const LiveIntervals &LIs, unsigned reg,
                                 const MachineInstr &MI) {
-  const LiveInterval &LI = LIs.getInterval(reg);
+  LiveInterval LI = LIs.getInterval(reg);
   SlotIndex SI = LIs.getInstructionIndex(&MI);
   return LI.expiredAt(SI);
 }