[llvm] r366866 - [AArch64] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after r366857
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 18:59:45 PDT 2019
Author: maskray
Date: Tue Jul 23 18:59:44 2019
New Revision: 366866
URL: http://llvm.org/viewvc/llvm-project?rev=366866&view=rev
Log:
[AArch64] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after r366857
Modified:
llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp?rev=366866&r1=366865&r2=366866&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp Tue Jul 23 18:59:44 2019
@@ -1572,6 +1572,7 @@ bool AArch64InstructionSelector::select(
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.
More information about the llvm-commits
mailing list