[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:57:50 PDT 2023


================
@@ -15159,16 +15163,16 @@ static void CheckImplicitConversion(Sema &S, Expr *E, QualType T,
 
   IntRange SourceTypeRange =
       IntRange::forTargetOfCanonicalType(S.Context, Source);
-  IntRange LikelySourceRange =
-      GetExprRange(S.Context, E, S.isConstantEvaluated(), /*Approximate*/ true);
+  IntRange LikelySourceRange = GetExprRange(
+      S.Context, E, S.isConstantEvaluatedContext(), /*Approximate*/ true);
----------------
shafik wrote:

```suggestion
      S.Context, E, S.isConstantEvaluatedContext(), /*Approximate=*/ true);
```

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


More information about the cfe-commits mailing list