From d3a19b58d973346a2fc7a644b11b7d03b90fc81c Mon Sep 17 00:00:00 2001 From: Michael Spencer Date: Thu, 26 Jun 2025 16:48:34 -0700 Subject: [PATCH] [llvm] Temporarily disable split stacks This appears to be causing: "stack nearly exhausted; compilation time may suffer, and crashes due to stack overflow are likely" warnings in Swift, so disable it while this issue is investigated. rdar://154158529 --- llvm/include/llvm/Support/ProgramStack.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/Support/ProgramStack.h b/llvm/include/llvm/Support/ProgramStack.h index 034c1eabd7478..1427e78f3e20e 100644 --- a/llvm/include/llvm/Support/ProgramStack.h +++ b/llvm/include/llvm/Support/ProgramStack.h @@ -12,6 +12,8 @@ #include "llvm/ADT/STLFunctionalExtras.h" #include "llvm/Support/Compiler.h" +// FIXME: Temporarily disable split stacks. rdar://154158529 +#if 0 // LLVM_HAS_SPLIT_STACKS is exposed in the header because CrashRecoveryContext // needs to know if it's running on another thread or not. // @@ -22,6 +24,7 @@ # define LLVM_HAS_SPLIT_STACKS # define LLVM_HAS_SPLIT_STACKS_AARCH64 #endif +#endif namespace llvm {