Skip to content

Commit 758b38f

Browse files
committed
Fix warnings around initialization of union
Radar-Id: rdar://problem/106095698
1 parent 57733f9 commit 758b38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/ABI/TaskStatus.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class TaskDependencyStatusRecord : public TaskStatusRecord {
294294
//
295295
// The type of thing we are waiting on, is specified in the enum below
296296
union Dependent {
297-
constexpr Dependent() {}
297+
constexpr Dependent(): Task(nullptr) {}
298298

299299
// This task is suspended waiting on another task. This could be an async
300300
// let child task or it could be another unstructured task.

0 commit comments

Comments
 (0)