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
This commit is contained in:
Diego Novillo 2015-11-11 16:39:22 +00:00
parent 20a4c0c205
commit 0767ae5896
1 changed files with 3 additions and 1 deletions

View File

@ -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));