[clang][bytecode] disable tail calls on mips (#229679)

As for the other architectures, this caused a Clang build for MIPS to
fail.

(cherry picked from commit cbc387549f1d218959827d90c4d45541f74b7da2)
This commit is contained in:
Alex Rønne Petersen authored and Tobias Hieta committed 2026-10-19 08:23:49 +02:00
1 parent 41042adf83
commit d5ff131667
1 file changed
+3 -2
+3 -2
View File
@@ -39,9 +39,10 @@ using namespace clang::interp;
// On MSVC, musttail does not guarantee tail calls in debug mode.
// We disable it on MSVC generally since it doesn't seem to be able
// to handle the way we use tailcalls.
// PPC can't tail-call external calls, which is a problem for InterpNext.
// MIPS and PPC can't tail-call external calls, which is a problem for
// InterpNext.
#if defined(_MSC_VER) || defined(__powerpc__) || !defined(MUSTTAIL) || \
defined(__i386__) || defined(__sparc__)
defined(__i386__) || defined(__sparc__) || defined(__mips__)
#undef MUSTTAIL
#define MUSTTAIL
#define USE_TAILCALLS 0