Skip to content

Commit 9c9fd35

Browse files
authored
Merge pull request #25207 from compnerd/convert-to-a-pedant
Basic: silence MSVC pedantic warning (NFC)
2 parents 836ae89 + 671576d commit 9c9fd35

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Basic/Default/Task.inc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ bool Task::execute() {
8484
}
8585

8686
Optional<StringRef> Redirects[] = {
87-
None, {StdoutPath}, {SeparateErrors ? StderrPath : StdoutPath}};
87+
None,
88+
StringRef{StdoutPath},
89+
StringRef{SeparateErrors ? StderrPath : StdoutPath},
90+
};
8891

8992
bool ExecutionFailed = false;
9093
PI = llvm::sys::ExecuteNoWait(ExecPath, llvm::toStringRefArray(Argv.data()),

0 commit comments

Comments
 (0)