Skip to content

Commit 1c86433

Browse files
authored
Merge pull request swiftlang#64096 from apple/rokhinip/106095698-fix-warning
Fix warnings around initialization of union
2 parents 3adf16e + 758b38f commit 1c86433

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)