================
@@ -228,9 +228,12 @@ calculateConstraintSatisfaction(Sema &S, const Expr 
*ConstraintExpr,
     // The following code removes the irrelevant diagnostic information.
     // FIXME: We should probably delay the addition of diagnostic information
     // until we know the entire expression is false.
-    if (BO.isOr() && IsRHSSatisfied)
+    if (BO.isOr() && IsRHSSatisfied) {
+      auto EffectiveDetailEnd =
+          Satisfaction.Details.begin() + EffectiveDetailEndIndex;
----------------
erichkeane wrote:

```suggestion
          std::advance(Satisfaction.Details.begin(), EffectiveDetailEndIndex);
```

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

Reply via email to