forked from OSchip/llvm-project
[mlir] Fix win build by using has_value() instead of hasValue() for Optional.
This commit is contained in:
parent
e78c80e3d6
commit
47cf004076
|
@ -1086,7 +1086,7 @@ SmallVector<Value> makeTiledShapes(OpBuilder &builder, Location loc,
|
||||||
Value valueToTile = std::get<0>(item);
|
Value valueToTile = std::get<0>(item);
|
||||||
Optional<SliceParameters> sliceParams = std::get<1>(item);
|
Optional<SliceParameters> sliceParams = std::get<1>(item);
|
||||||
tiledShapes.push_back(
|
tiledShapes.push_back(
|
||||||
sliceParams.hasValue()
|
sliceParams.has_value()
|
||||||
? materializeTiledShape(builder, loc, valueToTile, *sliceParams)
|
? materializeTiledShape(builder, loc, valueToTile, *sliceParams)
|
||||||
: valueToTile);
|
: valueToTile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue