We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c81340 commit ff9e2aaCopy full SHA for ff9e2aa
include/swift/SILOptimizer/Utils/CanonicalizeOSSALifetime.h
@@ -414,6 +414,8 @@ class CanonicalizeOSSALifetime final {
414
bool respectsDeinitBarriers() const {
415
if (!currentDef->isLexical())
416
return false;
417
+ if (currentDef->getFunction()->forceEnableLexicalLifetimes())
418
+ return true;
419
auto &module = currentDef->getFunction()->getModule();
420
return module.getASTContext().SILOpts.supportsLexicalLifetimes(module);
421
}
0 commit comments