[llvm] 25fccfd - [ARM] Fix unused variable warning in ARMExpandPseudoInsts.cpp
John Brawn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 12 08:51:02 PDT 2023
Author: John Brawn
Date: 2023-07-12T16:50:53+01:00
New Revision: 25fccfd41f475a266df5dfd254da4bb0bec3ce4d
URL: https://github.com/llvm/llvm-project/commit/25fccfd41f475a266df5dfd254da4bb0bec3ce4d
DIFF: https://github.com/llvm/llvm-project/commit/25fccfd41f475a266df5dfd254da4bb0bec3ce4d.diff
LOG: [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.
Added:
Modified:
llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
index 09af568e2d6e1b..cf9df7f0ea84ee 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;
}
More information about the llvm-commits
mailing list