[llvm] r290109 - Silence unused warning.
Daniel Jasper via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 06:24:23 PST 2016
Author: djasper
Date: Mon Dec 19 08:24:22 2016
New Revision: 290109
URL: http://llvm.org/viewvc/llvm-project?rev=290109&view=rev
Log:
Silence unused warning.
Modified:
llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp?rev=290109&r1=290108&r2=290109&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp Mon Dec 19 08:24:22 2016
@@ -43,6 +43,7 @@ static bool selectCopy(MachineInstr &I,
assert(RegBank && "Can't get reg bank for virtual register");
const unsigned DstSize = MRI.getType(DstReg).getSizeInBits();
+ (void)DstSize;
unsigned SrcReg = I.getOperand(1).getReg();
const unsigned SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI);
(void)SrcSize;
More information about the llvm-commits
mailing list