[clang] [clang][bytecode] Disable tail calls on MSVC (PR #188033)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 23 06:30:43 PDT 2026
================
@@ -37,7 +37,9 @@ using namespace clang::interp;
#endif
// On MSVC, musttail does not guarantee tail calls in debug mode.
-#if (defined(_MSC_VER) && defined(_DEBUG)) || !defined(MUSTTAIL)
+// We disable it on MSVC generally since it doesn't seem to be able
+// to handle the way we use tailcalls.
+#if defined(_MSC_VER) || !defined(MUSTTAIL)
----------------
Andarwinux wrote:
But clang-cl also defines _MSC_VER.
https://github.com/llvm/llvm-project/pull/188033
More information about the cfe-commits
mailing list