[clang] [Clang] Only emit likely_module_local when all declarations are in the main file (PR #244536)

Kuba Mracek via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 29 06:59:23 PST 2026


kubamracek wrote:

Same here, I'm in no way suggesting that we should encourage keeping such buggy code.

That said, bitcoin core has apparently exactly such a bug: https://github.com/bitcoin/bitcoin/pull/37007/

So I'm still thinking that it's not worth causing the extra trouble, and that requiring "all re-declarations to be in the .cpp" is a generally correct *tighter* rule for the optimizer hint. @efriedma-quic thoughts?

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


More information about the cfe-commits mailing list