[clang] [clang][bytecode] Use tailcalls via `[[clang::musttail]]` (PR #173756)

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 30 12:52:36 PST 2025


Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/173756 at github.com>


Sirraide wrote:

> A neat side-effect is that this fixes `SemaTemplate/stack-exhaustion.cpp` and `CodeGenCXX/cxx2b-deducing-this.cpp`, which used to fail with the bytecode interpreter in debug builds, presumably because of the large stack usage in the old `Interpret()` function.

Oh interesting; that’s nice. Yeah, overall I’d definitely be in favour of landing this (provided that this doesn’t make the interpreter unusable in Debug builds when Clang is compiled w/ MSVC, which is my main concern at the moment).

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


More information about the cfe-commits mailing list