[clang] [WebAssembly] Enable musttail only when tail-call is enabled (PR #163618)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 23 06:24:12 PDT 2025


================
@@ -374,6 +374,8 @@ def err_ppc_impossible_musttail: Error<
   >;
 def err_aix_musttail_unsupported: Error<
   "'musttail' attribute is not supported on AIX">;
+def err_wasm_musttail_unsupported: Error<
+  "'musttail' attribute is not supported on this target without tail-call feature">;
----------------
AaronBallman wrote:

You shouldn't need to add a new diagnostic, we have automatic checking for whether the attribute is supported by the target (that's the code in Attr.td) which will diagnose the attribute as being unknown.

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


More information about the cfe-commits mailing list