Author: Timm Baeder
Date: 2026-03-23T16:10:08+01:00
New Revision: 7bda811f5a034263a0128a7cacfb4f2827be2b5e

URL: 
https://github.com/llvm/llvm-project/commit/7bda811f5a034263a0128a7cacfb4f2827be2b5e
DIFF: 
https://github.com/llvm/llvm-project/commit/7bda811f5a034263a0128a7cacfb4f2827be2b5e.diff

LOG: [clang][bytecode] Disable tailcalls on aarch64 (#188042)

Apparently it causes problems there, too.
See https://lab.llvm.org/buildbot/#/builders/24/builds/18781

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/Interp.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/Interp.cpp 
b/clang/lib/AST/ByteCode/Interp.cpp
index fc783fe4ec871..e2c9b01f4c7ea 100644
--- a/clang/lib/AST/ByteCode/Interp.cpp
+++ b/clang/lib/AST/ByteCode/Interp.cpp
@@ -40,7 +40,9 @@ using namespace clang::interp;
 // 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.
-#if defined(_MSC_VER) || defined(_ARCH_PPC) || !defined(MUSTTAIL)
+// aarch64 seems to have problems too, at least with sanitizers enabled.
+#if defined(_MSC_VER) || defined(_ARCH_PPC) || defined(__aarch64__) ||         
\
+    !defined(MUSTTAIL)
 #define MUSTTAIL
 #define USE_TAILCALLS 0
 #else


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to