[NFC][Clang] Use previously declared variable instead of calling function redundantly

This commit is contained in:
PoYao Chang 2022-04-09 02:10:43 +08:00
parent ee4c235386
commit 369c5fa17b
1 changed files with 1 additions and 1 deletions

View File

@ -3432,7 +3432,7 @@ Sema::ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS, Declarator &D,
<< SourceRange(D.getName().TemplateId->LAngleLoc,
D.getName().TemplateId->RAngleLoc)
<< D.getName().TemplateId->LAngleLoc;
D.SetIdentifier(Name.getAsIdentifierInfo(), Loc);
D.SetIdentifier(II, Loc);
}
if (SS.isSet() && !SS.isInvalid()) {