[clang] [Clang] Handle consteval expression in array bounds expressions (PR #66222)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 13 19:58:20 PDT 2023


================
@@ -13928,7 +13930,7 @@ static bool CheckTautologicalComparison(Sema &S, BinaryOperator *E,
     return false;
 
   IntRange OtherValueRange = GetExprRange(
-      S.Context, Other, S.isConstantEvaluated(), /*Approximate*/ false);
+      S.Context, Other, S.isConstantEvaluatedContext(), /*Approximate*/ false);
----------------
shafik wrote:

```suggestion
      S.Context, Other, S.isConstantEvaluatedContext(), /*Approximate=*/ false);
```

https://github.com/llvm/llvm-project/pull/66222


More information about the cfe-commits mailing list