From bc46bca99e54f016c559286f53bdda66a484b96b Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 16 Jul 2018 04:42:27 +0000 Subject: [PATCH] [x86/SLH] Fix an unused variable warning in release builds after r337144. llvm-svn: 337145 --- llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp b/llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp index d1ce2c17a662..17c471a6d05f 100644 --- a/llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp +++ b/llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp @@ -1469,6 +1469,7 @@ void X86SpeculativeLoadHardeningPass::hardenLoadAddr( 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 {