[llvm] [RISCV] Set DebugLoc of epilogue (PR #74702)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 00:37:39 PST 2023


================
@@ -681,6 +681,10 @@ void RISCVInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
                                           const TargetRegisterClass *RC,
                                           const TargetRegisterInfo *TRI,
                                           Register VReg) const {
+  DebugLoc DL;
+  if (I != MBB.end())
----------------
wangpc-pp wrote:

Thanks! I use `MachineBasicBlock::findDebugLoc` now.

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


More information about the llvm-commits mailing list