[all-commits] [llvm/llvm-project] 43bb6b: [clang] Fix GCC -Wparentheses warning. NFC.
Liao Chunyu via All-commits
all-commits at lists.llvm.org
Tue Apr 8 20:44:13 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 43bb6bac2fde3a1847f39174ece5b848eced7dcf
https://github.com/llvm/llvm-project/commit/43bb6bac2fde3a1847f39174ece5b848eced7dcf
Author: Liao Chunyu <chunyu at iscas.ac.cn>
Date: 2025-04-08 (Tue, 08 Apr 2025)
Changed paths:
M clang/lib/Sema/SemaExprCXX.cpp
Log Message:
-----------
[clang] Fix GCC -Wparentheses warning. NFC.
Without this gcc warned like:
clang/lib/Sema/SemaExprCXX.cpp:4656:74: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
4655 | From->isNullPointerConstant(Context,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4656 | Expr::NPC_ValueDependentIsNull) &&
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
4657 | "Expr must be null pointer constant!");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list