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:
Alex Richardson 2021-08-26 09:47:53 +01:00
parent aa5b6c9779
commit bf66b0eefc
1 changed files with 1 additions and 1 deletions

View File

@ -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