[llvm] 6359842 - [GlobalISel] Silence unused variable warning in Release builds. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue May 25 01:55:42 PDT 2021
Author: Benjamin Kramer
Date: 2021-05-25T10:55:29+02:00
New Revision: 6359842bc088857799318dad366099eeca92a4d5
URL: https://github.com/llvm/llvm-project/commit/6359842bc088857799318dad366099eeca92a4d5
DIFF: https://github.com/llvm/llvm-project/commit/6359842bc088857799318dad366099eeca92a4d5.diff
LOG: [GlobalISel] Silence unused variable warning in Release builds. NFC.
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
index 748d7a0b79f1..e73a5f8c62fb 100644
--- a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
@@ -678,6 +678,7 @@ MachineInstrBuilder MachineIRBuilder::buildShuffleVector(const DstOp &Res,
assert(Src1Ty.getNumElements() + Src2Ty.getNumElements() >= Mask.size());
assert(DstTy.getElementType() == Src1Ty.getElementType() &&
DstTy.getElementType() == Src2Ty.getElementType());
+ (void)DstTy;
(void)Src1Ty;
(void)Src2Ty;
ArrayRef<int> MaskAlloc = getMF().allocateShuffleMask(Mask);
More information about the llvm-commits
mailing list