[GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
authorFangrui Song <i@maskray.me>
Tue, 1 Dec 2020 02:31:42 +0000 (18:31 -0800)
committerFangrui Song <i@maskray.me>
Tue, 1 Dec 2020 02:31:42 +0000 (18:31 -0800)
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp

index 8abee20..084ff1c 100644 (file)
@@ -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);