[llvm] r252751 - Properly fix unused variable in disable-assert builds.
Diego Novillo via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 08:39:22 PST 2015
Author: dnovillo
Date: Wed Nov 11 10:39:22 2015
New Revision: 252751
URL: http://llvm.org/viewvc/llvm-project?rev=252751&view=rev
Log:
Properly fix unused variable in disable-assert builds.
I missed the side-effects of ParseBFI in my previous attempt (r252748).
Thanks dblaikie for the suggestion of adding a void use of the unused
variable instead.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=252751&r1=252750&r2=252751&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Wed Nov 11 10:39:22 2015
@@ -9141,7 +9141,9 @@ static SDValue PerformBFICombine(SDNode
SDValue From1 = ParseBFI(N, ToMask1, FromMask1);
APInt ToMask2, FromMask2;
- assert(From1 == ParseBFI(CombineBFI.getNode(), ToMask2, FromMask2));
+ SDValue From2 = ParseBFI(CombineBFI.getNode(), ToMask2, FromMask2);
+ assert(From1 == From2);
+ (void)From2;
// First, unlink CombineBFI.
DCI.DAG.ReplaceAllUsesWith(CombineBFI, CombineBFI.getOperand(0));
More information about the llvm-commits
mailing list