From 3b181568db8efc30b79466bba4aa334f86a49877 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 22 Jul 2021 11:33:01 -0700 Subject: [PATCH] [Matrix] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D106457. NFC --- llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- 2.7.4