[llvm] r337145 - [x86/SLH] Fix an unused variable warning in release builds after
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 15 21:42:27 PDT 2018
Author: chandlerc
Date: Sun Jul 15 21:42:27 2018
New Revision: 337145
URL: http://llvm.org/viewvc/llvm-project?rev=337145&view=rev
Log:
[x86/SLH] Fix an unused variable warning in release builds after
r337144.
Modified:
llvm/trunk/lib/Target/X86/X86SpeculativeLoadHardening.cpp
Modified: llvm/trunk/lib/Target/X86/X86SpeculativeLoadHardening.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86SpeculativeLoadHardening.cpp?rev=337145&r1=337144&r2=337145&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86SpeculativeLoadHardening.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86SpeculativeLoadHardening.cpp Sun Jul 15 21:42:27 2018
@@ -1469,6 +1469,7 @@ void X86SpeculativeLoadHardeningPass::ha
auto OrI = BuildMI(MBB, InsertPt, Loc, TII->get(OrOp), TmpReg)
.addReg(VStateReg)
.addReg(OpReg);
+ (void)OrI;
++NumInstsInserted;
LLVM_DEBUG(dbgs() << " Inserting or: "; OrI->dump(); dbgs() << "\n");
} else {
More information about the llvm-commits
mailing list