PR tree-optimization/48129
* builtins.c (fold_builtin_snprintf): Convert to type of
built_in_decls[BUILT_IN_SNPRINTF] retval instead of
implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
From-SVN: r170985
+2011-03-15 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/48129
+ * builtins.c (fold_builtin_snprintf): Convert to type of
+ built_in_decls[BUILT_IN_SNPRINTF] retval instead of
+ implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
+
2011-03-15 Richard Guenther <rguenther@suse.de>
PR tree-optimization/41490
if (call && retval)
{
- retval = fold_convert_loc
- (loc, TREE_TYPE (TREE_TYPE (implicit_built_in_decls[BUILT_IN_SNPRINTF])),
- retval);
+ tree fn = built_in_decls[BUILT_IN_SNPRINTF];
+ retval = fold_convert_loc (loc, TREE_TYPE (TREE_TYPE (fn)), retval);
return build2 (COMPOUND_EXPR, TREE_TYPE (retval), call, retval);
}
else