Commit b9bbe57
committed
[Clang][AST] Fix printing for
llvm#121943 rewrote
`__atomic_test_and_set` and `__atomic_clear` to be lowered through AtomicExpr
StmtPrinter::VisitAtomicExpr still treated them like other atomic builtins
with a Val1 operand. This led to incorrect pretty-printing when dumping
the AST.
Skip Val1 for these two builtins like atomic loads.atomic_test_and_set and atomic_clear
1 parent ae1e909 commit b9bbe57
File tree
3 files changed
+25
-5
lines changed- clang
- docs
- include/clang/AST
- lib/AST
3 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
117 | 126 | | |
118 | 127 | | |
119 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6908 | 6908 | | |
6909 | 6909 | | |
6910 | 6910 | | |
| 6911 | + | |
| 6912 | + | |
| 6913 | + | |
| 6914 | + | |
| 6915 | + | |
| 6916 | + | |
| 6917 | + | |
| 6918 | + | |
| 6919 | + | |
| 6920 | + | |
| 6921 | + | |
| 6922 | + | |
| 6923 | + | |
| 6924 | + | |
| 6925 | + | |
6911 | 6926 | | |
6912 | 6927 | | |
6913 | 6928 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2024 | 2024 | | |
2025 | 2025 | | |
2026 | 2026 | | |
2027 | | - | |
2028 | | - | |
2029 | | - | |
2030 | | - | |
2031 | | - | |
| 2027 | + | |
2032 | 2028 | | |
2033 | 2029 | | |
2034 | 2030 | | |
| |||
0 commit comments