mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user