From 0767ae5896cf05bcc8146fd81302920dba6ac30d Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Wed, 11 Nov 2015 16:39:22 +0000 Subject: [PATCH] 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. llvm-svn: 252751 --- llvm/lib/Target/ARM/ARMISelLowering.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 166d5517f812..87bd9be01f09 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/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));