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 @@ -825,6 +825,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
825
825
826
826
struct AvailabilityDomainInfo {
827
827
FeatureAvailKind Kind = FeatureAvailKind::None;
828
+ Decl *Decl = nullptr ;
828
829
ImplicitCastExpr *Call = nullptr ;
829
830
bool isInvalid () const { return Kind == FeatureAvailKind::None; }
830
831
};
Original file line number Diff line number Diff line change @@ -980,7 +980,7 @@ ASTContext::getFeatureAvailInfo(Decl *D) const {
980
980
llvm_unreachable("invalid feature kind");
981
981
}
982
982
983
- ASTContext::AvailabilityDomainInfo Info{Kind, nullptr};
983
+ ASTContext::AvailabilityDomainInfo Info{Kind, D, nullptr};
984
984
985
985
if (Kind == FeatureAvailKind::Dynamic) {
986
986
Expr *FnExpr = Init->getInit(1);
You can’t perform that action at this time.
0 commit comments