[llvm-branch-commits] [libclc] release/22.x: [libclc] mark __clc_flush_denormal_if_not_supported as static inline (PR #207264)

Wenju He via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Jul 12 15:43:02 PDT 2026


wenju-he wrote:

> But I've seen other PRs against 22.x that were closed already, because of "we don't do another 22.x release".

Ok, then it might be difficult to land this to 22.x

> It also feels like the bug is actually something else, because it also looks like a codegen or tooling issue, though this PR is rather trivial and does fix the issue.

This PR is the correct root-cause fix. Without static, _CLC_INLINE (inline) function in header is problematic in C: when function is not inlined in a TU, compiler assumes it will be provided by another file (which won't happen) and generates declaration for __clc_flush_denormal_if_not_supported in that TU.

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


More information about the llvm-branch-commits mailing list