aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-12-20 15:42:32 -0800
committerKazu Hirata <kazu@google.com>2022-12-20 15:42:32 -0800
commit77c90c8ce0fe763b6ee2809a6dc437d6f18e1af2 (patch)
tree15a121e20136c30cacf9258d23b34d61c46a79bd /llvm/lib/Support/VirtualFileSystem.cpp
parent0b401ba71325c06a61f948c801685de021455b13 (diff)
downloadllvm-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.cpp2
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;