[llvm] [NFC][LLVM][CodeGen] Refactor MIR Printer (PR #137361)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 27 12:30:47 PDT 2025


================
@@ -803,7 +772,7 @@ void MIPrinter::print(const MachineBasicBlock &MBB) {
 
 void MIPrinter::print(const MachineInstr &MI) {
   const auto *MF = MI.getMF();
-  const auto &MRI = MF->getRegInfo();
+  const auto &MRI = MI.getMF()->getRegInfo();
----------------
jurahul wrote:

Leftover from earlier version, fixed.

https://github.com/llvm/llvm-project/pull/137361


More information about the llvm-commits mailing list