Skip to content

Commit 3ec9b26

Browse files
committed
[DCE] Verify liveness of completed lifetimes.
1 parent b405c8b commit 3ec9b26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lib/SILOptimizer/Transforms/DeadCodeElimination.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,9 @@ bool DCE::removeDead() {
835835
}
836836
}
837837

838-
OSSALifetimeCompletion completion(F, DT, *deadEndBlocks);
838+
OSSALifetimeCompletion completion(
839+
F, DT, *deadEndBlocks, OSSALifetimeCompletion::IgnoreTrivialVariable,
840+
/*forceLivenessVerification=*/true);
839841
for (auto value : valuesToComplete) {
840842
if (!value.has_value())
841843
continue;

0 commit comments

Comments
 (0)