Skip to content

Commit

Permalink
[Clang][Sema] Fix warnings after #84050 (#90104)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian authored Apr 25, 2024
1 parent cb9589b commit 6dd2617
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion clang/lib/Sema/SemaExprMember.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,6 @@ ExprResult Sema::ActOnMemberAccessExpr(Scope *S, Expr *Base,
DecomposeUnqualifiedId(Id, TemplateArgsBuffer,
NameInfo, TemplateArgs);

DeclarationName Name = NameInfo.getName();
bool IsArrow = (OpKind == tok::arrow);

if (getLangOpts().HLSL && IsArrow)
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2791,7 +2791,7 @@ bool Sema::LookupParsedName(LookupResult &R, Scope *S, CXXScopeSpec *SS,
return LookupInSuper(R, NNS->getAsRecordDecl());
// This nested-name-specifier occurs after another nested-name-specifier,
// so long into the context associated with the prior nested-name-specifier.
if (DC = computeDeclContext(*SS, EnteringContext)) {
if ((DC = computeDeclContext(*SS, EnteringContext))) {
// The declaration context must be complete.
if (!DC->isDependentContext() && RequireCompleteDeclContext(*SS, DC))
return false;
Expand Down

0 comments on commit 6dd2617

Please sign in to comment.