[AArch64][GlobalISel] Fix -Wunused-variable. NFC

This commit is contained in:
Fangrui Song 2020-10-24 12:46:47 -07:00
parent 6f9d84bb26
commit d5adadb3a5
1 changed files with 1 additions and 0 deletions

View File

@ -3927,6 +3927,7 @@ MachineInstr *AArch64InstructionSelector::emitIntegerCompare(
LLT CmpTy = MRI.getType(LHS.getReg());
assert(!CmpTy.isVector() && "Expected scalar or pointer");
unsigned Size = CmpTy.getSizeInBits();
(void)Size;
assert((Size == 32 || Size == 64) && "Expected a 32-bit or 64-bit LHS/RHS?");
// Fold the compare into a cmn or tst if possible.
if (auto FoldCmp = tryFoldIntegerCompare(LHS, RHS, Predicate, MIRBuilder))