Merge pull request #67761 from tshortli/ast-unavailable-decl-queries

NFC: Hoist queries for unavailable decl optimizations into the AST library
This commit is contained in:
Allan Shortlidge
2023-08-06 10:01:27 -07:00
committed by GitHub
18 changed files with 71 additions and 68 deletions

View File

@@ -1017,7 +1017,7 @@ void SILGenFunction::emitFunction(FuncDecl *fd) {
prepareEpilog(fd->getResultInterfaceType(),
fd->hasThrows(), CleanupLocation(fd));
if (shouldLowerToUnavailableCodeStub(fd))
if (fd->requiresUnavailableDeclABICompatibilityStubs())
emitApplyOfUnavailableCodeReached();
emitProfilerIncrement(fd->getTypecheckedBody());