[clang] [clang][AST] Fix positioning of preserve cconv attributes in TypePrinter (PR #147285)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 9 06:13:56 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/29790

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: AST/ast-print-cconv-preserve.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/21/include -nostdsysteminc -ast-print /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/AST/ast-print-cconv-preserve.cpp -o - | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/AST/ast-print-cconv-preserve.cpp # RUN: at line 1
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/21/include -nostdsysteminc -ast-print /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/AST/ast-print-cconv-preserve.cpp -o -
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/AST/ast-print-cconv-preserve.cpp
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/AST/ast-print-cconv-preserve.cpp:3:22: error: 'preserve_none' calling convention is not supported for this target
    3 | void (__attribute__((preserve_none)) *none)();
      |                      ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/AST/ast-print-cconv-preserve.cpp:7:16: error: 'preserve_all' calling convention is not supported for this target
    7 | __attribute__((preserve_all)) void (*all)();
      |                ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/AST/ast-print-cconv-preserve.cpp:11:16: error: 'preserve_most' calling convention is not supported for this target
   11 | __attribute__((preserve_most)) void (*most)();
      |                ^
3 errors generated.

--

********************


```

</details>

https://github.com/llvm/llvm-project/pull/147285


More information about the cfe-commits mailing list