From 0de60b550b727fa3a0202a9ab5ca30520e291dd5 Mon Sep 17 00:00:00 2001 From: Thomas Raoux Date: Mon, 10 Aug 2020 15:33:40 -0700 Subject: [PATCH] [mlir] Fix mlir build break due to warning when NDEBUG is not set --- mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp index 522a459..a68f28f 100644 --- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp +++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp @@ -1153,6 +1153,7 @@ public: if (memrefVectorElementType.getElementType() != xferOp.getVectorType().getElementType()) return failure(); +#ifndef NDEBUG // Check that memref vector type is a suffix of 'vectorType. unsigned memrefVecEltRank = memrefVectorElementType.getRank(); unsigned resultVecRank = xferOp.getVectorType().getRank(); @@ -1165,6 +1166,7 @@ public: assert(memrefVecEltShape[i] != resultVecShape[rankOffset + i] && "memref vector element shape should match suffix of vector " "result shape."); +#endif // ifndef NDEBUG } // 1. Get the source/dst address as an LLVM vector pointer. -- 2.7.4