diff options
author | Kazu Hirata <kazu@google.com> | 2022-12-20 15:42:32 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-12-20 15:42:32 -0800 |
commit | 77c90c8ce0fe763b6ee2809a6dc437d6f18e1af2 (patch) | |
tree | 15a121e20136c30cacf9258d23b34d61c46a79bd /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | 0b401ba71325c06a61f948c801685de021455b13 (diff) | |
download | llvm-77c90c8ce0fe763b6ee2809a6dc437d6f18e1af2.zip llvm-77c90c8ce0fe763b6ee2809a6dc437d6f18e1af2.tar.gz llvm-77c90c8ce0fe763b6ee2809a6dc437d6f18e1af2.tar.bz2 |
[llvm] Use std::optional instead of Optional
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 'llvm/lib/Support/VirtualFileSystem.cpp')
-rw-r--r-- | llvm/lib/Support/VirtualFileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp index fb6ce47..efb5faa8 100644 --- a/llvm/lib/Support/VirtualFileSystem.cpp +++ b/llvm/lib/Support/VirtualFileSystem.cpp @@ -1638,7 +1638,7 @@ class llvm::vfs::RedirectingFileSystemParser { return std::nullopt; } - Optional<RedirectingFileSystem::RootRelativeKind> + std::optional<RedirectingFileSystem::RootRelativeKind> parseRootRelativeKind(yaml::Node *N) { SmallString<12> Storage; StringRef Value; |