[clang] [clang] Avoid stack exhaustion in recursive `constexpr` calls (PR #201706)
Tony Guillot via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 4 16:05:38 PDT 2026
================
@@ -1009,6 +1013,20 @@ namespace {
return true;
}
+ bool runWithSufficientStackSpace(SourceLocation Loc,
----------------
to268 wrote:
Why not use `runWithSufficientStackSpace()` from the `StackExhaustionHandler` class from [StackExhaustionHandler.h](https://github.com/llvm/llvm-project/blob/70f7167ce2622a610a6d6dca4d5934ea8a07a056/clang/include/clang/Basic/StackExhaustionHandler.h#L21)? Looks like duplicated code to me.
https://github.com/llvm/llvm-project/pull/201706
More information about the cfe-commits
mailing list