File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -804,6 +804,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
804
804
805
805
struct AvailabilityDomainInfo {
806
806
FeatureAvailKind Kind = FeatureAvailKind::None;
807
+ Decl *Decl = nullptr ;
807
808
ImplicitCastExpr *Call = nullptr ;
808
809
bool isInvalid () const { return Kind == FeatureAvailKind::None; }
809
810
};
Original file line number Diff line number Diff line change @@ -950,7 +950,7 @@ ASTContext::getFeatureAvailInfo(Decl *D) const {
950
950
llvm_unreachable("invalid feature kind");
951
951
}
952
952
953
- ASTContext::AvailabilityDomainInfo Info{Kind, nullptr};
953
+ ASTContext::AvailabilityDomainInfo Info{Kind, D, nullptr};
954
954
955
955
if (Kind == FeatureAvailKind::Dynamic) {
956
956
Expr *FnExpr = Init->getInit(1);
You can’t perform that action at this time.
0 commit comments