Skip to content

Commit 7bda811

Browse files
authored
[clang][bytecode] Disable tailcalls on aarch64 (llvm#188042)
Apparently it causes problems there, too. See https://lab.llvm.org/buildbot/#/builders/24/builds/18781
1 parent a977522 commit 7bda811

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

clang/lib/AST/ByteCode/Interp.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ using namespace clang::interp;
4040
// We disable it on MSVC generally since it doesn't seem to be able
4141
// to handle the way we use tailcalls.
4242
// PPC can't tail-call external calls, which is a problem for InterpNext.
43-
#if defined(_MSC_VER) || defined(_ARCH_PPC) || !defined(MUSTTAIL)
43+
// aarch64 seems to have problems too, at least with sanitizers enabled.
44+
#if defined(_MSC_VER) || defined(_ARCH_PPC) || defined(__aarch64__) || \
45+
!defined(MUSTTAIL)
4446
#define MUSTTAIL
4547
#define USE_TAILCALLS 0
4648
#else

0 commit comments

Comments
 (0)