[IR] Use std::optional in ModuleSummaryIndex.h (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 22:40:08 +0000 (14:40 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 22:40:08 +0000 (14:40 -0800)
commitf9b93cf3344c53f1a5c071b61430694a924570c7
tree3c971e69ddb7ac5e748b60b3c4e669680527c58e
parenta18ca456342267039edb693850595137169c99dd
[IR] Use std::optional in ModuleSummaryIndex.h (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/include/llvm/IR/ModuleSummaryIndex.h