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 fd32f2a commit b23cd42Copy full SHA for b23cd42
lib/SIL/IR/SILType.cpp
@@ -176,6 +176,8 @@ bool SILType::isNoReturnFunction(SILModule &M,
176
}
177
178
Lifetime SILType::getLifetime(const SILFunction &F) const {
179
+ if (!F.getModule().Options.supportsLexicalLifetimes(F.getModule()))
180
+ return Lifetime::EagerMove;
181
auto contextType = hasTypeParameter() ? F.mapTypeIntoContext(*this) : *this;
182
const auto &lowering = F.getTypeLowering(contextType);
183
auto properties = lowering.getRecursiveProperties();
0 commit comments