@@ -57,12 +57,20 @@ class OSSALifetimeCompletion {
57
57
// / Extend trivial variables for lifetime diagnostics (only in SILGenCleanup).
58
58
HandleTrivialVariable_t handleTrivialVariable;
59
59
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
+
60
65
public:
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 )
64
71
: domInfo(domInfo), deadEndBlocks(deadEndBlocks),
65
- completedValues (function), handleTrivialVariable(handleTrivialVariable) {}
72
+ completedValues (function), handleTrivialVariable(handleTrivialVariable),
73
+ ForceLivenessVerification(forceLivenessVerification) {}
66
74
67
75
// / The kind of boundary at which to complete the lifetime.
68
76
// /
0 commit comments