[Utils] Use std::optional in CloneFunction.cpp (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 01:44:44 +0000 (17:44 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 01:44:44 +0000 (17:44 -0800)
commit12c80ef3f5c1ff7eacea23525829bbbdd86631de
tree7532cbfb83ce2c23717cb3b3d8bca63d3b91b963
parentd90a14f87d24119bde7b0cd18f2afa089c78b27e
[Utils] Use std::optional in CloneFunction.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/CloneFunction.cpp