Skip to content

Commit afdfd2e

Browse files
committed
Tighten condition under which we bailout from lifetime dependence inference of implicit functions
1 parent 77e30d2 commit afdfd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/LifetimeDependence.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ LifetimeDependenceInfo::infer(AbstractFunctionDecl *afd, Type resultType) {
379379
// TODO: rdar://123555720: Remove this check after another round of
380380
// surveying builtins
381381
if (auto *fd = dyn_cast<FuncDecl>(afd)) {
382-
if (fd->isImplicit()) {
382+
if (fd->isImplicit() && fd->getModuleContext()->isBuiltinModule()) {
383383
return std::nullopt;
384384
}
385385
}

0 commit comments

Comments
 (0)