From 305ace7cc8e6b02c1063820cfed1d7baeac0437f Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 24 Jul 2019 01:59:44 +0000 Subject: [PATCH] [AArch64] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after r366857 llvm-svn: 366866 --- llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp index 606fdcb..892d469 100644 --- a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp +++ b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp @@ -1572,6 +1572,7 @@ bool AArch64InstructionSelector::select(MachineInstr &I, assert(SrcRB.getID() == AArch64::FPRRegBankID && DstRB.getID() == AArch64::FPRRegBankID && "Wrong extract regbank!"); + (void)SrcRB; // Emit the same code as a vector extract. // Offset must be a multiple of 64. -- 2.7.4