Author: Alex Richardson Date: 2021-08-26T10:09:39+01:00 New Revision: bf66b0eefcda20170eeb574670121159fcd755fa
URL: https://github.com/llvm/llvm-project/commit/bf66b0eefcda20170eeb574670121159fcd755fa DIFF: https://github.com/llvm/llvm-project/commit/bf66b0eefcda20170eeb574670121159fcd755fa.diff LOG: Fix LLVM_ENABLE_THREADS check from 26a92d5852b2c6bf77efd26f6c0194c913f40285 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 Added: Modified: clang/include/clang/Basic/Stack.h Removed: ################################################################################ diff --git a/clang/include/clang/Basic/Stack.h b/clang/include/clang/Basic/Stack.h index 3418c3bad11bd..30ebd94aedd1f 100644 --- a/clang/include/clang/Basic/Stack.h +++ b/clang/include/clang/Basic/Stack.h @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits