[StaticAnalyzer] Don't use Optional::create (NFC)
authorKazu Hirata <kazu@google.com>
Fri, 25 Nov 2022 23:38:53 +0000 (15:38 -0800)
committerKazu Hirata <kazu@google.com>
Fri, 25 Nov 2022 23:38:53 +0000 (15:38 -0800)
commit20ba079dda7be1a72d64cebc9f55d909bf29f6c1
tree9b90c92565c10f830f320f377fe5429c30b117e6
parentecfa2d3d9943a48411d04a4b3103c42b4653d9af
[StaticAnalyzer] Don't use Optional::create (NFC)

Note that std::optional does not offer create().

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
clang/lib/StaticAnalyzer/Core/ExprEngine.cpp