Skip to content

Commit 3aa5f94

Browse files
committed
Remove bailout on builtins from lifetime dependence inference
1 parent a77b1e0 commit 3aa5f94

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/Sema/LifetimeDependence.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -481,15 +481,6 @@ LifetimeDependenceInfo::infer(AbstractFunctionDecl *afd, Type resultType) {
481481
}
482482

483483
if (!candidateParam && !hasParamError) {
484-
// Explicitly turn off error messages for builtins, since some of are
485-
// ~Escapable currently.
486-
// TODO: rdar://123555720: Remove this check after another round of
487-
// surveying builtins
488-
if (auto *fd = dyn_cast<FuncDecl>(afd)) {
489-
if (fd->isImplicit() && fd->getModuleContext()->isBuiltinModule()) {
490-
return std::nullopt;
491-
}
492-
}
493484
diags.diagnose(returnLoc,
494485
diag::lifetime_dependence_cannot_infer_no_candidates);
495486
return std::nullopt;

0 commit comments

Comments
 (0)