[Utils] Use std::optional in Local.cpp (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 01:49:07 +0000 (17:49 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 01:49:07 +0000 (17:49 -0800)
commit10bab60ddbeb90a77c383de673cbc422171a6d09
tree9204202365a0bd587c41be8f8d22593e87a909bb
parent12c80ef3f5c1ff7eacea23525829bbbdd86631de
[Utils] Use std::optional in Local.cpp (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
llvm/lib/Transforms/Utils/Local.cpp