[llvm] 88bdc46 - [NFC][M68k] Correct debug message.

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 19:58:53 PDT 2022


Author: Sheng
Date: 2022-09-09T10:58:37+08:00
New Revision: 88bdc4687d02b87d079deda21ea31120a66a24cd

URL: https://github.com/llvm/llvm-project/commit/88bdc4687d02b87d079deda21ea31120a66a24cd
DIFF: https://github.com/llvm/llvm-project/commit/88bdc4687d02b87d079deda21ea31120a66a24cd.diff

LOG: [NFC][M68k] Correct debug message.

Added: 
    

Modified: 
    llvm/lib/Target/M68k/M68kInstrInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/M68k/M68kInstrInfo.cpp b/llvm/lib/Target/M68k/M68kInstrInfo.cpp
index b33469529ca55..563f80967ed47 100644
--- a/llvm/lib/Target/M68k/M68kInstrInfo.cpp
+++ b/llvm/lib/Target/M68k/M68kInstrInfo.cpp
@@ -762,7 +762,7 @@ void M68kInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
                                          const TargetRegisterInfo *TRI) const {
   const MachineFunction &MF = *MBB.getParent();
   assert(MF.getFrameInfo().getObjectSize(FrameIndex) == 4 &&
-         "Stack slot too small for store");
+         "Stack slot too small for load");
   unsigned Opc = getLoadRegOpcode(DstReg, RC, TRI, Subtarget);
   DebugLoc DL = MBB.findDebugLoc(MI);
   M68k::addFrameReference(BuildMI(MBB, MI, DL, get(Opc), DstReg), FrameIndex);


        


More information about the llvm-commits mailing list