Skip to content

Commit 15e6427

Browse files
committed
Fixes for rocMLIR
1 parent ddd649a commit 15e6427

File tree

1 file changed

+3
-3
lines changed
  • external/llvm-project/mlir/lib/Dialect/Bufferization/Transforms

1 file changed

+3
-3
lines changed

external/llvm-project/mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,10 @@ BufferizationOptions bufferization::getPartialBufferizationOptions() {
487487
BufferizationOptions options;
488488
options.allowUnknownOps = true;
489489
options.copyBeforeWrite = true;
490-
options.unknownTypeConverterFn = [](Value value, Attribute memorySpace,
490+
options.unknownTypeConverterFn = [](TensorType tensorType,
491+
Attribute memorySpace,
491492
const BufferizationOptions &options) {
492-
return getMemRefTypeWithStaticIdentityLayout(
493-
cast<TensorType>(value.getType()), memorySpace);
493+
return getMemRefTypeWithStaticIdentityLayout(tensorType, memorySpace);
494494
};
495495
options.opFilter.allowDialect<BufferizationDialect>();
496496
return options;

0 commit comments

Comments
 (0)