[Mlir-commits] [mlir] ffb1392 - [mlir][linalg] Fix Windows build
Matthias Springer
llvmlistbot at llvm.org
Wed Jul 14 19:01:33 PDT 2021
Author: Matthias Springer
Date: 2021-07-15T10:56:30+09:00
New Revision: ffb139290d4bf8e46ae88758354bccb647a20f71
URL: https://github.com/llvm/llvm-project/commit/ffb139290d4bf8e46ae88758354bccb647a20f71
DIFF: https://github.com/llvm/llvm-project/commit/ffb139290d4bf8e46ae88758354bccb647a20f71.diff
LOG: [mlir][linalg] Fix Windows build
The build failure was introduced by D105458. (Linux builds were not affected.)
Differential Revision: https://reviews.llvm.org/D106029
Added:
Modified:
mlir/lib/Dialect/Linalg/Utils/Utils.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Utils/Utils.cpp b/mlir/lib/Dialect/Linalg/Utils/Utils.cpp
index d582c5328e4e..1620a047390b 100644
--- a/mlir/lib/Dialect/Linalg/Utils/Utils.cpp
+++ b/mlir/lib/Dialect/Linalg/Utils/Utils.cpp
@@ -603,10 +603,14 @@ Value makeTiledShape(OpBuilder &builder, Location loc, Value valueToTile,
}
Operation *sliceOp = shapedType.isa<MemRefType>()
- ? builder.create<memref::SubViewOp>(
- loc, valueToTile, offsets, sizes, strides)
- : builder.create<tensor::ExtractSliceOp>(
- loc, valueToTile, offsets, sizes, strides);
+ ? builder
+ .create<memref::SubViewOp>(
+ loc, valueToTile, offsets, sizes, strides)
+ .getOperation()
+ : builder
+ .create<tensor::ExtractSliceOp>(
+ loc, valueToTile, offsets, sizes, strides)
+ .getOperation();
return sliceOp->getResult(0);
}
More information about the Mlir-commits
mailing list