================
@@ -8057,11 +8057,23 @@ class MappableExprsHandler {
           if (!StrideExpr)
             return false;
 
+          assert(StrideExpr->getType()->isIntegerType() &&
+                 "Stride expression must be of integer type");
+
+          // If the stride involves member access or array subscript, it's
+          // non-contiguous.
+          const Expr *S = StrideExpr->IgnoreParenImpCasts();
+          if (isa<MemberExpr>(S) || isa<ArraySubscriptExpr>(S))
+            return true;
+
----------------
alexey-bataev wrote:

You don't need this, since you're checking for non-constant after that

https://github.com/llvm/llvm-project/pull/176708
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to