[llvm] af3ec73 - [NFC][ARM] Silence unused variable in release builds
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 3 15:22:24 PDT 2020
Author: Jordan Rupprecht
Date: 2020-08-03T15:21:44-07:00
New Revision: af3ec731d54d8ca5e5752256bee5b93a5929fa14
URL: https://github.com/llvm/llvm-project/commit/af3ec731d54d8ca5e5752256bee5b93a5929fa14
DIFF: https://github.com/llvm/llvm-project/commit/af3ec731d54d8ca5e5752256bee5b93a5929fa14.diff
LOG: [NFC][ARM] Silence unused variable in release builds
Added:
Modified:
llvm/lib/Target/ARM/MVEVPTOptimisationsPass.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/MVEVPTOptimisationsPass.cpp b/llvm/lib/Target/ARM/MVEVPTOptimisationsPass.cpp
index 8dbb8b53c890..0523ac9447c3 100644
--- a/llvm/lib/Target/ARM/MVEVPTOptimisationsPass.cpp
+++ b/llvm/lib/Target/ARM/MVEVPTOptimisationsPass.cpp
@@ -462,6 +462,8 @@ bool MVEVPTOptimisations::ConvertVPSEL(MachineBasicBlock &MBB) {
.addImm(ARMVCC::Then)
.add(MI.getOperand(4))
.add(MI.getOperand(2));
+ // Silence unused variable warning in release builds.
+ (void)MIBuilder;
LLVM_DEBUG(dbgs() << "Replacing VPSEL: "; MI.dump();
dbgs() << " with VMOVT: "; MIBuilder.getInstr()->dump());
DeadInstructions.push_back(&MI);
More information about the llvm-commits
mailing list