mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:50:51 +08:00
[mlir] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of manual work required in migrating from Optional to std::optional. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
This commit is contained in:
@@ -608,7 +608,7 @@ void ForeachOp::build(
|
||||
OpBuilder &builder, OperationState &result, Value tensor,
|
||||
function_ref<void(OpBuilder &, Location, ValueRange, Value, ValueRange)>
|
||||
bodyBuilder) {
|
||||
build(builder, result, tensor, llvm::None, bodyBuilder);
|
||||
build(builder, result, tensor, std::nullopt, bodyBuilder);
|
||||
}
|
||||
|
||||
void ForeachOp::build(
|
||||
|
||||
Reference in New Issue
Block a user