Skip to content

Commit

Permalink
[mlir][linalg] Fix Windows build
Browse files Browse the repository at this point in the history
The build failure was introduced by D105458. (Linux builds were not affected.)

Differential Revision: https://reviews.llvm.org/D106029
  • Loading branch information
matthias-springer committed Jul 15, 2021
1 parent 4064b6a commit ffb1392
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mlir/lib/Dialect/Linalg/Utils/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ffb1392

Please sign in to comment.