Commit 80e4ddd
[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 ef30f4c commit 80e4ddd
File tree
3 files changed
+16
-1
lines changed- clang
- docs
- lib/Sema
- test/Sema
3 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
864 | 868 | | |
865 | 869 | | |
866 | 870 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14062 | 14062 | | |
14063 | 14063 | | |
14064 | 14064 | | |
14065 | | - | |
| 14065 | + | |
14066 | 14066 | | |
14067 | 14067 | | |
14068 | 14068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
0 commit comments