diff options
Diffstat (limited to 'llvm/tools/llvm-ml/llvm-ml.cpp')
-rw-r--r-- | llvm/tools/llvm-ml/llvm-ml.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ml/llvm-ml.cpp b/llvm/tools/llvm-ml/llvm-ml.cpp index 12cd727..49fb429 100644 --- a/llvm/tools/llvm-ml/llvm-ml.cpp +++ b/llvm/tools/llvm-ml/llvm-ml.cpp @@ -44,6 +44,7 @@ #include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/WithColor.h" #include <ctime> +#include <optional> using namespace llvm; using namespace llvm::opt; @@ -303,7 +304,7 @@ int main(int Argc, char **Argv) { std::vector<std::string> IncludeDirs = InputArgs.getAllArgValues(OPT_include_path); if (!InputArgs.hasArg(OPT_ignore_include_envvar)) { - if (llvm::Optional<std::string> IncludeEnvVar = + if (std::optional<std::string> IncludeEnvVar = llvm::sys::Process::GetEnv("INCLUDE")) { SmallVector<StringRef, 8> Dirs; StringRef(*IncludeEnvVar) |