[llvm] 67f2267 - [M68k][NFC] Suppress warning on an unused variable when assertion is disabled

Min Hsu via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 24 14:26:52 PDT 2024


Author: Min Hsu
Date: 2024-03-24T14:24:44-07:00
New Revision: 67f2267ae006f35edfdf36567646403e61527d1b

URL: https://github.com/llvm/llvm-project/commit/67f2267ae006f35edfdf36567646403e61527d1b
DIFF: https://github.com/llvm/llvm-project/commit/67f2267ae006f35edfdf36567646403e61527d1b.diff

LOG: [M68k][NFC] Suppress warning on an unused variable when assertion is disabled

NFC.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/M68k/M68kISelLowering.cpp b/llvm/lib/Target/M68k/M68kISelLowering.cpp
index 158393f02a2470..786aa7bcb64ea0 100644
--- a/llvm/lib/Target/M68k/M68kISelLowering.cpp
+++ b/llvm/lib/Target/M68k/M68kISelLowering.cpp
@@ -939,6 +939,7 @@ SDValue M68kTargetLowering::LowerFormalArguments(
   for (unsigned i = 0, e = ArgLocs.size(); i != e; ++i) {
     CCValAssign &VA = ArgLocs[i];
     assert(VA.getValNo() != LastVal && "Same value in 
diff erent locations");
+    (void)LastVal;
 
     LastVal = VA.getValNo();
 


        


More information about the llvm-commits mailing list