Skip to content

Commit

Permalink
Revert "[Clang][Sema] Fix warnings after #84050 (#90104)"
Browse files Browse the repository at this point in the history
This reverts commit 6dd2617.
  • Loading branch information
pranavk committed Apr 26, 2024
1 parent 8feedd5 commit 45fc0e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions clang/lib/Sema/SemaExprMember.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1793,6 +1793,7 @@ 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 45fc0e6

Please sign in to comment.