llvm::Optional is in the process of switching to the
std::optional-like interface with has_value/value as opposed to
hasValue/getValue.
This patch adds has_value and value to enable the same transition.
Differential D130819
[mlir] Add has_value and value to OptionalParseResult kazu on Jul 30 2022, 12:32 AM. Authored by
Details llvm::Optional is in the process of switching to the This patch adds has_value and value to enable the same transition.
Diff Detail
Event TimelineComment Actions I don't quite follow how changes to llvm::Optional necessitates changes to OptionalParseResult's API. llvm::Optional is an implementation detail not a user facing one. Comment Actions This patch is for consistency with updates to llvm::Optional so that people don't have to worry about whether to use hasValue or has_value. As you mentioned, changes to llvm::Optional do not necessitate changes to OptionalParseResult. |