Skip to content

Commit 9274200

Browse files
[mlir] Fix the build in the release mode
This patch fixes: mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp:286:47: error: use of undeclared identifier 'stringifyReassocIndices' mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp:412:47: error: use of undeclared identifier 'stringifyReassocIndices'
1 parent ebac9f4 commit 9274200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ static bool hasAtMostOneResultFunctionOfDim(AffineMap map, int64_t dim) {
8989
}
9090
return true;
9191
}
92+
#endif // NDEBUG
9293

9394
static std::string stringifyReassocIndices(ReassociationIndicesRef ri) {
9495
return llvm::interleaved(ri, ", ", /*Prefix=*/"|", /*Suffix=*/"");
9596
}
96-
#endif // NDEBUG
9797

9898
/// Return the index of the first result of `map` that is a function of
9999
/// AffineDimExpr(dim), std::nullopt otherwise.

0 commit comments

Comments
 (0)