Skip to content

Commit 637bcf8

Browse files
committed
Same: Avoid expensive call to TypeBase::getASTContext()
1 parent 1dd79ae commit 637bcf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3408,7 +3408,7 @@ NeverNullType TypeResolver::resolveArrayType(ArrayTypeRepr *repr,
34083408
return ErrorType::get(getASTContext());
34093409
}
34103410

3411-
ASTContext &ctx = baseTy->getASTContext();
3411+
ASTContext &ctx = getASTContext();
34123412
// If the standard library isn't loaded, we ought to let the user know
34133413
// something has gone terribly wrong, since the rest of the compiler is going
34143414
// to assume it can canonicalize [T] to Array<T>.

0 commit comments

Comments
 (0)