forked from OSchip/llvm-project
Fix LLVM_ENABLE_THREADS check from 26a92d5852
We should be using #if instead of #ifdef here since LLVM_ENABLE_THREADS is set using #cmakedefine01 so is always defined. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D108110
This commit is contained in:
parent
aa5b6c9779
commit
bf66b0eefc
|
@ -39,7 +39,7 @@ namespace clang {
|
|||
/// is insufficient, calls Diag to emit a diagnostic before calling Fn.
|
||||
inline void runWithSufficientStackSpace(llvm::function_ref<void()> Diag,
|
||||
llvm::function_ref<void()> Fn) {
|
||||
#ifdef LLVM_ENABLE_THREADS
|
||||
#if LLVM_ENABLE_THREADS
|
||||
if (LLVM_UNLIKELY(isStackNearlyExhausted()))
|
||||
runWithSufficientStackSpaceSlow(Diag, Fn);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue