]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/graphite-isl-ast-to-gimple.c
tree-optimization/93964 - adjust ISL code generation for pointer params
[gcc.git] / gcc / graphite-isl-ast-to-gimple.c
index 40d1e8de6ae94b4a7f2e24d6d63d027f2d04286e..556264dc0d301ad07507058ce2ef956b823e4874 100644 (file)
@@ -266,6 +266,9 @@ gcc_expression_from_isl_ast_expr_id (tree type,
   tree t = res->second;
   if (useless_type_conversion_p (type, TREE_TYPE (t)))
     return t;
+  if (POINTER_TYPE_P (TREE_TYPE (t))
+      && !POINTER_TYPE_P (type) && !ptrofftype_p (type))
+    t = fold_convert (sizetype, t);
   return fold_convert (type, t);
 }
 
This page took 0.03047 seconds and 5 git commands to generate.