Commit ef57b93
committed
UPSTREAM: [Clang][AST] Fix printing for
llvm/llvm-project#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.
(cherry picked from commit ba49062914f01f68cf3c4e067139a24b29a0e45b)atomic_test_and_set and atomic_clear (#159712)1 parent 271cac7 commit ef57b93
File tree
3 files changed
+25
-5
lines changed- interpreter/llvm-project/clang
- docs
- include/clang/AST
- lib/AST
3 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
260 | 269 | | |
261 | 270 | | |
262 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6783 | 6783 | | |
6784 | 6784 | | |
6785 | 6785 | | |
| 6786 | + | |
| 6787 | + | |
| 6788 | + | |
| 6789 | + | |
| 6790 | + | |
| 6791 | + | |
| 6792 | + | |
| 6793 | + | |
| 6794 | + | |
| 6795 | + | |
| 6796 | + | |
| 6797 | + | |
| 6798 | + | |
| 6799 | + | |
| 6800 | + | |
6786 | 6801 | | |
6787 | 6802 | | |
6788 | 6803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1976 | 1976 | | |
1977 | 1977 | | |
1978 | 1978 | | |
1979 | | - | |
1980 | | - | |
1981 | | - | |
1982 | | - | |
1983 | | - | |
| 1979 | + | |
1984 | 1980 | | |
1985 | 1981 | | |
1986 | 1982 | | |
| |||
0 commit comments