From: Diego Novillo Date: Wed, 11 Nov 2015 16:39:22 +0000 (+0000) Subject: Properly fix unused variable in disable-assert builds. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=f2d61b3209c564f2ad588908bb4c0ef37929df77 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252751 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 166d5517f81..87bd9be01f0 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -9141,7 +9141,9 @@ static SDValue PerformBFICombine(SDNode *N, 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));