[llvm-branch-commits] [llvm] d928dfc - [GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 30 18:36:34 PST 2020
Author: Fangrui Song
Date: 2020-11-30T18:31:42-08:00
New Revision: d928dfc6f924f7e8436dcb5bcc51285fd03e869c
URL: https://github.com/llvm/llvm-project/commit/d928dfc6f924f7e8436dcb5bcc51285fd03e869c
DIFF: https://github.com/llvm/llvm-project/commit/d928dfc6f924f7e8436dcb5bcc51285fd03e869c.diff
LOG: [GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
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 8abee20690f8..084ff1c4a9cc 100644
--- a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
@@ -657,6 +657,8 @@ MachineInstrBuilder MachineIRBuilder::buildShuffleVector(const DstOp &Res,
assert(Src1Ty.getNumElements() + Src2Ty.getNumElements() >= Mask.size());
assert(DstTy.getElementType() == Src1Ty.getElementType() &&
DstTy.getElementType() == Src2Ty.getElementType());
+ (void)Src1Ty;
+ (void)Src2Ty;
ArrayRef<int> MaskAlloc = getMF().allocateShuffleMask(Mask);
return buildInstr(TargetOpcode::G_SHUFFLE_VECTOR, {DstTy}, {Src1, Src2})
.addShuffleMask(MaskAlloc);
More information about the llvm-branch-commits
mailing list