Skip to content

Commit 6dd2617

Browse files
authored
[Clang][Sema] Fix warnings after #84050 (#90104)
1 parent cb9589b commit 6dd2617

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

clang/lib/Sema/SemaExprMember.cpp

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

1796-
DeclarationName Name = NameInfo.getName();
17971796
bool IsArrow = (OpKind == tok::arrow);
17981797

17991798
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)