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

@@ -763,7 +763,7 @@ bool SILGenModule::hasFunction(SILDeclRef constant) {
}
void SILGenModule::visit(Decl *D) {
if (Lowering::shouldSkipLowering(D))
if (!D->isAvailableDuringLowering())
return;
ASTVisitor::visit(D);