[mlir] Fix mlir build break due to warning when NDEBUG is not set

This commit is contained in:
Thomas Raoux 2020-08-10 15:33:40 -07:00
parent 05d74dbc3b
commit 0de60b550b
1 changed files with 2 additions and 0 deletions

View File

@ -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.