From: Fangrui Song Date: Thu, 22 Jul 2021 18:33:01 +0000 (-0700) Subject: [Matrix] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D106457... X-Git-Tag: llvmorg-14-init~600 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b181568db8efc30b79466bba4aa334f86a49877;p=platform%2Fupstream%2Fllvm.git [Matrix] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D106457. NFC --- diff --git a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp index 8a5bc44..8030a61 100644 --- a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp +++ b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp @@ -1141,6 +1141,7 @@ public: void finalizeLowering(Instruction *Inst, MatrixTy Matrix, IRBuilder<> &Builder) { auto inserted = Inst2ColumnMatrix.insert(std::make_pair(Inst, Matrix)); + (void)inserted; assert(inserted.second && "multiple matrix lowering mapping"); ToRemove.push_back(Inst);