diff options
author | Jie Fu <jiefu@tencent.com> | 2023-12-09 19:13:30 +0800 |
---|---|---|
committer | Jie Fu <jiefu@tencent.com> | 2023-12-09 19:13:30 +0800 |
commit | 3ec6c72551846b8f4143c8c101a1a6203e85a2aa (patch) | |
tree | 83bff2ea6485c4e395b8f542465eda3e619dfad8 /llvm/tools/llvm-cov/SourceCoverageView.cpp | |
parent | fa981f57dde30fdae3c169182f5a354f375cff7a (diff) | |
download | llvm-3ec6c72551846b8f4143c8c101a1a6203e85a2aa.zip llvm-3ec6c72551846b8f4143c8c101a1a6203e85a2aa.tar.gz llvm-3ec6c72551846b8f4143c8c101a1a6203e85a2aa.tar.bz2 |
[AST] Fix -Wlogical-op-parentheses in ExprConstant.cpp (NFC)
llvm-project/clang/lib/AST/ExprConstant.cpp:5645:74: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
5645 | (Definition->isConstexpr() || Info.CurrentCall->CanEvalMSConstexpr &&
| ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
5646 | Definition->hasAttr<MSConstexprAttr>()))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
llvm-project/clang/lib/AST/ExprConstant.cpp:5645:74: note: place parentheses around the '&&' expression to silence this warning
5645 | (Definition->isConstexpr() || Info.CurrentCall->CanEvalMSConstexpr &&
| ^
| (
5646 | Definition->hasAttr<MSConstexprAttr>()))
|
| )
1 error generated.
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
0 files changed, 0 insertions, 0 deletions