Skip to content

Commit 6813e7d

Browse files
committed
[FOLD] replace uses of LookupResult::NotFoundInCurrentInstantiation with wasNotFoundInCurrentInstantiation()
1 parent db8dc4f commit 6813e7d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2791,7 +2791,7 @@ Sema::ActOnIdExpression(Scope *S, CXXScopeSpec &SS,
27912791

27922792
// If the result might be in a dependent base class, this is a dependent
27932793
// id-expression.
2794-
if (R.getResultKind() == LookupResult::NotFoundInCurrentInstantiation)
2794+
if (R.wasNotFoundInCurrentInstantiation())
27952795
return ActOnDependentIdExpression(SS, TemplateKWLoc, NameInfo,
27962796
IsAddressOfOperand, TemplateArgs);
27972797

clang/lib/Sema/SemaTemplate.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5946,8 +5946,7 @@ bool Sema::CheckTemplateTypeArgument(
59465946
LookupParsedName(Result, CurScope, &SS, /*ObjectType=*/QualType());
59475947

59485948
if (Result.getAsSingle<TypeDecl>() ||
5949-
Result.getResultKind() ==
5950-
LookupResult::NotFoundInCurrentInstantiation) {
5949+
Result.wasNotFoundInCurrentInstantiation()) {
59515950
assert(SS.getScopeRep() && "dependent scope expr must has a scope!");
59525951
// Suggest that the user add 'typename' before the NNS.
59535952
SourceLocation Loc = AL.getSourceRange().getBegin();

0 commit comments

Comments
 (0)