diff options
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp b/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp index 21d816bc997..adc536f1add 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp @@ -138,12 +138,12 @@ static const MachineInstr *getFirstEpilogueInst(const MachineBasicBlock &MBB) { E = MBB.rend(); I != E; ++I) { if (I->getDebugLoc() != LastLoc) - return Res; + return &*Res; Res = &*I; } // If all instructions have the same debug location, assume whole MBB is // an epilogue. - return MBB.begin(); + return &*MBB.begin(); } // \brief Collect registers that are modified in the function body (their |