Skip to content

Commit 75995f0

Browse files
authored
Merge pull request #64136 from eeckstein/fix-warning
fix an llvm::Optional deprecation warning
2 parents ac72084 + 564732e commit 75995f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Basic/Program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ swift::ExecuteWithPipe(llvm::StringRef program,
100100
llvm::BumpPtrAllocator Alloc;
101101
const char **argv = toNullTerminatedCStringArray(args, Alloc);
102102
const char **envp = nullptr;
103-
if (env.hasValue()) {
103+
if (env.has_value()) {
104104
envp = toNullTerminatedCStringArray(*env, Alloc);
105105
}
106106
const char *progCStr = args[0] == program

0 commit comments

Comments
 (0)