This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR tree-opt/32527: ICE in build2_stat (aff_combination_scale)


+	  tree type = comb->type;
+	  /* The type of rest is sizetype for pointer types.  */
+	  if (POINTER_TYPE_P (type))
+	    type = sizetype;
+
+	  comb->rest = fold_build2 (MULT_EXPR, type, comb->rest,

Why not just

tree type = TREE_TYPE (comb->rest)

??

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]