[llvm] 8763aa0 - [AArch64] Fix an unused variable warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 3 12:16:52 PDT 2023
Author: Kazu Hirata
Date: 2023-10-03T12:16:44-07:00
New Revision: 8763aa034068f17eb160c8f0b1de92fca136a56f
URL: https://github.com/llvm/llvm-project/commit/8763aa034068f17eb160c8f0b1de92fca136a56f
DIFF: https://github.com/llvm/llvm-project/commit/8763aa034068f17eb160c8f0b1de92fca136a56f.diff
LOG: [AArch64] Fix an unused variable warning
This patch fixes:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:25852:12: error:
unused variable 'MaskSize' [-Werror,-Wunused-variable]
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 8c42572c374dd84..3ae7a893ca4e9e3 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -25853,6 +25853,7 @@ static SDValue GenerateFixedLengthSVETBL(SDValue Op, SDValue Op1, SDValue Op2,
uint64_t MaxOffset = APInt(BitsPerElt, -1, false).getZExtValue();
assert(ElementsPerVectorReg <= IndexLen && MaskSize <= IndexLen &&
"Incorrectly legalised shuffle operation");
+ (void)MaskSize;
SmallVector<SDValue, 8> TBLMask;
for (int Index : ShuffleMask) {
More information about the llvm-commits
mailing list