================
@@ -13108,14 +13109,16 @@ class Sema final : public SemaBase {
               ? ExpressionEvaluationContext::ImmediateFunctionContext
               : ExpressionEvaluationContext::PotentiallyEvaluated);
       if (FD) {
+        auto &Current = S.currentEvaluationContext(),
+             Parent = S.parentEvaluationContext();
----------------
Sirraide wrote:

```suggestion
        auto &Current = S.currentEvaluationContext();
        auto &Parent = S.parentEvaluationContext();
```
I think this is a bit clearer, because I don’t think you meant to copy the 
parent evaluation context here, right?

https://github.com/llvm/llvm-project/pull/124426
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to