[llvm] d5adadb - [AArch64][GlobalISel] Fix -Wunused-variable. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 24 12:47:18 PDT 2020
Author: Fangrui Song
Date: 2020-10-24T12:47:11-07:00
New Revision: d5adadb3a564236a894cbb5f189496a65d9e9742
URL: https://github.com/llvm/llvm-project/commit/d5adadb3a564236a894cbb5f189496a65d9e9742
DIFF: https://github.com/llvm/llvm-project/commit/d5adadb3a564236a894cbb5f189496a65d9e9742.diff
LOG: [AArch64][GlobalISel] Fix -Wunused-variable. NFC
Added:
Modified:
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
Removed:
################################################################################
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))
More information about the llvm-commits
mailing list