We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c95738 commit 618630fCopy full SHA for 618630f
lib/Sema/TypeCheckAvailability.cpp
@@ -4058,6 +4058,9 @@ class ExprAvailabilityWalker : public BaseDiagnosticWalker {
4058
4059
static void suggestUnsafeOnEnclosingDecl(
4060
SourceRange referenceRange, const DeclContext *referenceDC) {
4061
+ if (referenceRange.isInvalid())
4062
+ return;
4063
+
4064
ASTContext &ctx = referenceDC->getASTContext();
4065
std::optional<ASTNode> versionCheckNode;
4066
const Decl *memberLevelDecl = nullptr;
0 commit comments