Skip to content

Commit d641dc6

Browse files
committed
[UnreachableLifetimeCompletion] Keep ctor arg.
Don't drop the argument, use it to initialize the member.
1 parent 365c1a0 commit d641dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/SIL/OSSALifetimeCompletion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ class UnreachableLifetimeCompletion {
147147

148148
public:
149149
UnreachableLifetimeCompletion(SILFunction *function, DominanceInfo *domInfo)
150-
: function(function), unreachableBlocks(function),
151-
unreachableInsts(function), incompleteValues(function) {}
150+
: function(function), domInfo(domInfo), unreachableBlocks(function),
151+
unreachableInsts(function), incompleteValues(function) {}
152152

153153
/// Record information about this unreachable instruction and return true if
154154
/// ends any simple OSSA lifetimes.

0 commit comments

Comments
 (0)