Skip to content

Commit 000ee25

Browse files
committed
Basic: simplify conversion deduction
The `redirects` parameter is of type `ArrayRef` which is default constructed through the special `None` type. Use `None` rather than `nullptr` which would attempt to create a 0-sized array with a `nullptr`. This fixes the build on Windows.
1 parent d3cb915 commit 000ee25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Basic/Default/TaskQueue.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ bool TaskQueue::execute(TaskBeganCallback Began, TaskFinishedCallback Finished,
9999
bool ExecutionFailed = false;
100100
ProcessInfo PI = ExecuteNoWait(T->ExecPath, Argv.data(),
101101
(const char **)envp,
102-
/*redirects*/nullptr, /*memoryLimit*/0,
102+
/*redirects*/None, /*memoryLimit*/0,
103103
/*ErrMsg*/nullptr, &ExecutionFailed);
104104
if (ExecutionFailed) {
105105
return true;

0 commit comments

Comments
 (0)