Skip to content

Commit

Permalink
[mlir] Fix mlir build break due to warning when NDEBUG is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRaoux committed Aug 10, 2020
1 parent 05d74db commit 0de60b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,7 @@ class VectorTransferConversion : public ConvertToLLVMPattern {
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();
Expand All @@ -1165,6 +1166,7 @@ class VectorTransferConversion : public ConvertToLLVMPattern {
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.
Expand Down

0 comments on commit 0de60b5

Please sign in to comment.