diff options
author | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-06 09:53:37 -0800 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-06 09:56:14 -0800 |
commit | 3c255f679c90e332fe0b38b09d5811a64db3f0f6 (patch) | |
tree | 824a5b686ddb65c32accffd5e60b394700d61947 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
parent | aa6ea6009fc50b02dbf3788ee9fe605081b154f6 (diff) | |
download | llvm-3c255f679c90e332fe0b38b09d5811a64db3f0f6.zip llvm-3c255f679c90e332fe0b38b09d5811a64db3f0f6.tar.gz llvm-3c255f679c90e332fe0b38b09d5811a64db3f0f6.tar.bz2 |
Process: convert Optional to std::optional
This applies to GetEnv and FindInEnvPath.
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
-rw-r--r-- | llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp b/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp index 5f4d0cd..bc473a2 100644 --- a/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp +++ b/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp @@ -28,6 +28,7 @@ #include "llvm/Support/Process.h" #include "llvm/Support/StringSaver.h" #include "llvm/Support/raw_ostream.h" +#include <optional> using namespace llvm; @@ -76,7 +77,7 @@ static std::vector<StringRef> getSearchPaths(opt::InputArgList *Args, Ret.push_back(Arg->getValue()); // Add $LIB. - Optional<std::string> EnvOpt = sys::Process::GetEnv("LIB"); + std::optional<std::string> EnvOpt = sys::Process::GetEnv("LIB"); if (!EnvOpt) return Ret; StringRef Env = Saver.save(*EnvOpt); |