diff options
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 569d51aa28d..09316175a78 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -686,11 +686,11 @@ void MIPrinter::print(const MachineInstr &MI) { NeedComma = true; } - if (MI.getDebugLoc()) { + if (const DebugLoc &DL = MI.getDebugLoc()) { if (NeedComma) OS << ','; OS << " debug-location "; - MI.getDebugLoc()->printAsOperand(OS, MST); + DL->printAsOperand(OS, MST); } if (!MI.memoperands_empty()) { |