Skip to content

Commit 91a0808

Browse files
committed
[FOLD] replace uses of LookupResult::NotFoundInCurrentInstantiation with wasNotFoundInCurrentInstantiation()
1 parent 8bf66e9 commit 91a0808

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
@@ -5948,8 +5948,7 @@ bool Sema::CheckTemplateTypeArgument(
59485948
LookupParsedName(Result, CurScope, &SS, /*ObjectType=*/QualType());
59495949

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

0 commit comments

Comments
 (0)