From 25fccfd41f475a266df5dfd254da4bb0bec3ce4d Mon Sep 17 00:00:00 2001 From: John Brawn Date: Wed, 12 Jul 2023 16:47:47 +0100 Subject: [PATCH] [ARM] Fix unused variable warning in ARMExpandPseudoInsts.cpp When built without LLVM_ENABLE_ASSERTIONS we can get a warning in ARMExpandPseudoInsts.cpp due to a variable only being used inside of a LLVM_DEBUG statement. Fix this with a dummy use, like we do elsewhere. --- llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp index 09af568e2d6e..cf9df7f0ea84 100644 --- a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp +++ b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp @@ -1046,6 +1046,7 @@ void ARMExpandPseudo::ExpandTMOV32BitImm(MachineBasicBlock &MBB, .addImm(PendingShift) .add(predOps(ARMCC::AL)) .setMIFlags(MIFlags); + (void)Lsl; LLVM_DEBUG(dbgs() << "And: "; Lsl->dump();); PendingShift = 0; }