[llvm] ea31a17 - [AArch64] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 13 12:41:01 PDT 2023
Author: Fangrui Song
Date: 2023-04-13T12:40:55-07:00
New Revision: ea31a17dbec14363d8fe141128067db453befdc2
URL: https://github.com/llvm/llvm-project/commit/ea31a17dbec14363d8fe141128067db453befdc2
DIFF: https://github.com/llvm/llvm-project/commit/ea31a17dbec14363d8fe141128067db453befdc2.diff
LOG: [AArch64] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
Added:
Modified:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 4b4f8c7f62cd..92eee316eae8 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -22217,7 +22217,7 @@ static void replaceBoolVectorBitcast(SDNode *N,
SDLoc DL(N);
SDValue Op = N->getOperand(0);
EVT VT = N->getValueType(0);
- EVT SrcVT = Op.getValueType();
+ [[maybe_unused]] EVT SrcVT = Op.getValueType();
assert(SrcVT.isVector() && SrcVT.getVectorElementType() == MVT::i1 &&
"Must be bool vector.");
More information about the llvm-commits
mailing list