Skip to content

Commit d928dfc

Browse files
committed
[GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
1 parent 36fe1a9 commit d928dfc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,8 @@ MachineInstrBuilder MachineIRBuilder::buildShuffleVector(const DstOp &Res,
657657
assert(Src1Ty.getNumElements() + Src2Ty.getNumElements() >= Mask.size());
658658
assert(DstTy.getElementType() == Src1Ty.getElementType() &&
659659
DstTy.getElementType() == Src2Ty.getElementType());
660+
(void)Src1Ty;
661+
(void)Src2Ty;
660662
ArrayRef<int> MaskAlloc = getMF().allocateShuffleMask(Mask);
661663
return buildInstr(TargetOpcode::G_SHUFFLE_VECTOR, {DstTy}, {Src1, Src2})
662664
.addShuffleMask(MaskAlloc);

0 commit comments

Comments
 (0)