Commit 0e39e35
[clang] Fix unexpected
C23 has `bool`, but logical operators still return int. Check that
we're not in C to avoid false-positive -Wconstant-logical-operand.
Fixes llvm#64356
(cherry picked from commit a18e92d)-Wconstant-logical-operand in C23 (llvm#80724)1 parent c669eaf commit 0e39e35
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
914 | 918 | | |
915 | 919 | | |
916 | 920 | | |
| |||
0 commit comments