Skip to content

Commit 431fbba

Browse files
committed
Expand type refinement contexts to encompass attributes
(cherry picked from commit 0e80b4e)
1 parent 15d7a21 commit 431fbba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/TypeCheckAvailability.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ class TypeRefinementContextBuilder : private ASTWalker {
702702

703703
return Range;
704704
}
705-
706-
return D->getSourceRange();
705+
706+
return D->getSourceRangeIncludingAttrs();
707707
}
708708

709709
void buildContextsForBodyOfDecl(Decl *D) {

0 commit comments

Comments
 (0)