forked from OSchip/llvm-project
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:
parent
20a4c0c205
commit
0767ae5896
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue