From 083891925bb634b1b0227d6668e388ea0267b942 Mon Sep 17 00:00:00 2001 From: "Andrew V. Tischenko" Date: Mon, 26 Feb 2018 09:43:21 +0000 Subject: The final step to close D41278 [MachineCombiner] Improve debug output (NFC). Differential Revision: https://reviews.llvm.org/D41278 llvm-svn: 326074 --- llvm/lib/CodeGen/MachineInstr.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/MachineInstr.cpp') diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 98993b2146e..7d04e6b4d77 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1235,6 +1235,8 @@ void MachineInstr::print(raw_ostream &OS, bool IsStandalone, bool SkipOpers, if (const MachineFunction *MF = getMFIfAvailable(*this)) { F = &MF->getFunction(); M = F->getParent(); + if (!TII) + TII = MF->getSubtarget().getInstrInfo(); } ModuleSlotTracker MST(M); -- cgit v1.2.3