diff options
author | Kazu Hirata <kazu@google.com> | 2023-01-14 20:22:48 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-01-14 20:22:48 -0800 |
commit | e1cdda57fabddb809b17f30f5dcd3e59518cafa7 (patch) | |
tree | 45185a7228c78c987b2afc04102fe083065cf3eb /libc/utils | |
parent | a64846bee0bb4b4912c8cf6bf018ba5d892065d1 (diff) | |
download | llvm-e1cdda57fabddb809b17f30f5dcd3e59518cafa7.tar.gz |
[libc] 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
Diffstat (limited to 'libc/utils')
-rw-r--r-- | libc/utils/LibcTableGenUtil/APIIndexer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/utils/LibcTableGenUtil/APIIndexer.h b/libc/utils/LibcTableGenUtil/APIIndexer.h index 12dab0faa45c..d530dc717455 100644 --- a/libc/utils/LibcTableGenUtil/APIIndexer.h +++ b/libc/utils/LibcTableGenUtil/APIIndexer.h @@ -21,7 +21,7 @@ namespace llvm_libc { class APIIndexer { private: - llvm::Optional<llvm::StringRef> StdHeader; + std::optional<llvm::StringRef> StdHeader; // TableGen classes in spec.td. llvm::Record *NamedTypeClass; |