Skip to content

Commit bcedb71

Browse files
kovdan01asl
andcommitted
Address review comment
Co-authored-by: Anton Korobeynikov <[email protected]>
1 parent dcd769d commit bcedb71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckAttr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5459,7 +5459,7 @@ static AbstractFunctionDecl *findAutoDiffOriginalFunctionDecl(
54595459
if (!baseType && lookupContext->isTypeContext())
54605460
baseType = lookupContext->getSelfTypeInContext();
54615461
if (baseType) {
5462-
if (!baseType.getPointer()->hasError())
5462+
if (!baseType->hasError())
54635463
results = TypeChecker::lookupMember(lookupContext, baseType, funcName);
54645464
} else {
54655465
results = TypeChecker::lookupUnqualified(

0 commit comments

Comments
 (0)