@@ -57,12 +57,20 @@ class OSSALifetimeCompletion {
5757 // / Extend trivial variables for lifetime diagnostics (only in SILGenCleanup).
5858 HandleTrivialVariable_t handleTrivialVariable;
5959
60+ // / Whether verification of the computed liveness should be run even when the
61+ // / global setting is off.
62+ // / TODO: Remove this option.
63+ bool ForceLivenessVerification;
64+
6065public:
61- OSSALifetimeCompletion (SILFunction *function, const DominanceInfo *domInfo,
62- DeadEndBlocks &deadEndBlocks,
63- HandleTrivialVariable_t handleTrivialVariable = IgnoreTrivialVariable)
66+ OSSALifetimeCompletion (
67+ SILFunction *function, const DominanceInfo *domInfo,
68+ DeadEndBlocks &deadEndBlocks,
69+ HandleTrivialVariable_t handleTrivialVariable = IgnoreTrivialVariable,
70+ bool forceLivenessVerification = false )
6471 : domInfo(domInfo), deadEndBlocks(deadEndBlocks),
65- completedValues (function), handleTrivialVariable(handleTrivialVariable) {}
72+ completedValues (function), handleTrivialVariable(handleTrivialVariable),
73+ ForceLivenessVerification(forceLivenessVerification) {}
6674
6775 // / The kind of boundary at which to complete the lifetime.
6876 // /
0 commit comments