[flang] Use std::optional instead of llvm::Optional (NFC)
authorKazu Hirata <kazu@google.com>
Tue, 3 Jan 2023 03:13:11 +0000 (19:13 -0800)
committerKazu Hirata <kazu@google.com>
Tue, 3 Jan 2023 03:13:11 +0000 (19:13 -0800)
commit55916758d754227888293501de87bc90b7328108
tree82e9d0a143dfb719a41542acbf148184627629d7
parent5273219e57a85ea360639e21d2fcc8b3edc429f5
[flang] Use std::optional instead of llvm::Optional (NFC)

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
flang/include/flang/Lower/StatementContext.h
flang/include/flang/Optimizer/Support/InternalNames.h
flang/unittests/Optimizer/InternalNamesTest.cpp