Skip to content

Commit

Permalink
[mlir][bufferization][NFC] Fix typo in AllocTensorOp builders
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-springer committed Jun 27, 2022
1 parent 3ff93f8 commit 0d0a94a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
Expand Up @@ -281,13 +281,14 @@ LogicalResult AllocTensorOp::verify() {
void AllocTensorOp::build(OpBuilder &builder, OperationState &result,
RankedTensorType type, ValueRange dynamicSizes) {
build(builder, result, type, dynamicSizes, /*copy=*/Value(),
/*memory_space=*/BoolAttr());
/*memory_space=*/IntegerAttr());
}

void AllocTensorOp::build(OpBuilder &builder, OperationState &result,
RankedTensorType type, ValueRange dynamicSizes,
Value copy) {
build(builder, result, type, dynamicSizes, copy, /*memory_space=*/BoolAttr());
build(builder, result, type, dynamicSizes, copy,
/*memory_space=*/IntegerAttr());
}

namespace {
Expand Down

0 comments on commit 0d0a94a

Please sign in to comment.