================
@@ -184,6 +188,7 @@ class InterpState final : public State, public SourceMapper 
{
   SmallVectorImpl<PartialDiagnosticAt> *PrevDiags = nullptr;
   unsigned SpeculationDepth = 0;
   std::optional<bool> ConstantContextOverride;
+  unsigned StepsLeft;
----------------
tbaederr wrote:

We have this in `ExprConstant.cpp`:
```c++
    bool nextStep(const Stmt *S) {
      if (Ctx.getLangOpts().ConstexprStepLimit == 0)
        return true;
```
so... `0` means infinite steps? Which this patch doesn't properly implement and 
can't be tested I guess.

https://github.com/llvm/llvm-project/pull/176150
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to