forked from OSchip/llvm-project
[flang] Use std::nullopt rather than {}.
Original-commit: flang-compiler/f18@9a740acf83 Reviewed-on: https://github.com/flang-compiler/f18/pull/151
This commit is contained in:
parent
d90437bd91
commit
56cc22fdfe
|
@ -135,7 +135,7 @@ std::optional<A> GetIf(const VARIANT &u) {
|
|||
if (const A * x{std::get_if<A>(&u)}) {
|
||||
return {*x};
|
||||
}
|
||||
return {};
|
||||
return std::nullopt;
|
||||
}
|
||||
} // namespace Fortran::common
|
||||
#endif // FORTRAN_COMMON_IDIOMS_H_
|
||||
|
|
Loading…
Reference in New Issue