File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
include/swift/SILOptimizer/Utils Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,8 @@ class CanonicalizeOSSALifetime final {
237237 // / copies.
238238 const MaximizeLifetime_t maximizeLifetime;
239239
240+ SILFunction *function;
241+
240242 // If present, will be used to ensure that the lifetime is not shortened to
241243 // end inside an access scope which it previously enclosed. (Note that ending
242244 // before such an access scope is fine regardless.)
@@ -354,7 +356,7 @@ class CanonicalizeOSSALifetime final {
354356 DeadEndBlocksAnalysis *deadEndBlocksAnalysis, DominanceInfo *domTree,
355357 BasicCalleeAnalysis *calleeAnalysis, InstructionDeleter &deleter)
356358 : pruneDebugMode(pruneDebugMode), maximizeLifetime(maximizeLifetime),
357- accessBlockAnalysis(accessBlockAnalysis),
359+ function(function), accessBlockAnalysis(accessBlockAnalysis),
358360 deadEndBlocksAnalysis(deadEndBlocksAnalysis), domTree(domTree),
359361 calleeAnalysis(calleeAnalysis), deleter(deleter) {}
360362
You can’t perform that action at this time.
0 commit comments