Skip to content

Commit

Permalink
[clang] Fix a warning
Browse files Browse the repository at this point in the history
This patch fixes:

  clang/lib/Sema/SemaLambda.cpp:922:39: warning: suggest parentheses
  around ‘&&’ within ‘||’ [-Wparentheses]
  • Loading branch information
kazutakahirata committed Oct 15, 2022
1 parent a867cb8 commit 0784de2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clang/lib/Sema/SemaLambda.cpp
Expand Up @@ -916,11 +916,11 @@ void Sema::ActOnStartOfLambdaDefinition(LambdaIntroducer &Intro,
SourceLocation EndLoc;
SmallVector<ParmVarDecl *, 8> Params;

assert(ParamInfo.getDeclSpec().getStorageClassSpec() ==
DeclSpec::SCS_unspecified ||
ParamInfo.getDeclSpec().getStorageClassSpec() ==
DeclSpec::SCS_static &&
"Unexpected storage specifier");
assert(
(ParamInfo.getDeclSpec().getStorageClassSpec() ==
DeclSpec::SCS_unspecified ||
ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static) &&
"Unexpected storage specifier");
bool IsLambdaStatic =
ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static;

Expand Down

0 comments on commit 0784de2

Please sign in to comment.