================
@@ -9749,6 +9749,11 @@ bool LValueExprEvaluator::VisitArraySubscriptExpr(const
ArraySubscriptExpr *E) {
if (Success) {
Result.setFrom(Info.Ctx, Val);
+ // If Index cannot be represented as a 64 bit integer, return
+ // unsuccessful.
+ if (!Index.tryExtValue().has_value())
----------------
bviyer wrote:
I returned `return Error(e)` with `return false` (saying the step was not
successful)? It produces the correct output and matches the output of the clang
in my host mac machine.
https://github.com/llvm/llvm-project/pull/172399
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits