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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user