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> {
804804
805805 struct AvailabilityDomainInfo {
806806 FeatureAvailKind Kind = FeatureAvailKind::None;
807+ Decl *Decl = nullptr ;
807808 ImplicitCastExpr *Call = nullptr ;
808809 bool isInvalid () const { return Kind == FeatureAvailKind::None; }
809810 };
Original file line number Diff line number Diff line change @@ -950,7 +950,7 @@ ASTContext::getFeatureAvailInfo(Decl *D) const {
950950 llvm_unreachable("invalid feature kind");
951951 }
952952
953- ASTContext::AvailabilityDomainInfo Info{Kind, nullptr};
953+ ASTContext::AvailabilityDomainInfo Info{Kind, D, nullptr};
954954
955955 if (Kind == FeatureAvailKind::Dynamic) {
956956 Expr *FnExpr = Init->getInit(1);
You can’t perform that action at this time.
0 commit comments