From d5adadb3a564236a894cbb5f189496a65d9e9742 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 24 Oct 2020 12:46:47 -0700 Subject: [PATCH] [AArch64][GlobalISel] Fix -Wunused-variable. NFC --- llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp index 4da3f1299702..f0333d18f3c1 100644 --- a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp +++ b/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp @@ -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))