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 dcd769d commit bcedb71Copy full SHA for bcedb71
lib/Sema/TypeCheckAttr.cpp
@@ -5459,7 +5459,7 @@ static AbstractFunctionDecl *findAutoDiffOriginalFunctionDecl(
5459
if (!baseType && lookupContext->isTypeContext())
5460
baseType = lookupContext->getSelfTypeInContext();
5461
if (baseType) {
5462
- if (!baseType.getPointer()->hasError())
+ if (!baseType->hasError())
5463
results = TypeChecker::lookupMember(lookupContext, baseType, funcName);
5464
} else {
5465
results = TypeChecker::lookupUnqualified(
0 commit comments