Skip to content

Commit 45fc0e6

Browse files
committed
Revert "[Clang][Sema] Fix warnings after llvm#84050 (llvm#90104)"
This reverts commit 6dd2617.
1 parent 8feedd5 commit 45fc0e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/lib/Sema/SemaExprMember.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,6 +1793,7 @@ ExprResult Sema::ActOnMemberAccessExpr(Scope *S, Expr *Base,
17931793
DecomposeUnqualifiedId(Id, TemplateArgsBuffer,
17941794
NameInfo, TemplateArgs);
17951795

1796+
DeclarationName Name = NameInfo.getName();
17961797
bool IsArrow = (OpKind == tok::arrow);
17971798

17981799
if (getLangOpts().HLSL && IsArrow)

clang/lib/Sema/SemaLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2791,7 +2791,7 @@ bool Sema::LookupParsedName(LookupResult &R, Scope *S, CXXScopeSpec *SS,
27912791
return LookupInSuper(R, NNS->getAsRecordDecl());
27922792
// This nested-name-specifier occurs after another nested-name-specifier,
27932793
// so long into the context associated with the prior nested-name-specifier.
2794-
if ((DC = computeDeclContext(*SS, EnteringContext))) {
2794+
if (DC = computeDeclContext(*SS, EnteringContext)) {
27952795
// The declaration context must be complete.
27962796
if (!DC->isDependentContext() && RequireCompleteDeclContext(*SS, DC))
27972797
return false;

0 commit comments

Comments
 (0)