2010-11-04 Richard Guenther <rguenther@suse.de>
* tree-nested.c (build_addr): Use build_fold_addr_expr.
From-SVN: r166314
+2010-11-04 Richard Guenther <rguenther@suse.de>
+
+ * tree-nested.c (build_addr): Use build_fold_addr_expr.
+
2010-11-04 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45991
way the properties are for the ADDR_EXPR are computed properly. */
save_context = current_function_decl;
current_function_decl = context;
- retval = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (exp)), exp);
+ retval = build_fold_addr_expr (exp);
current_function_decl = save_context;
return retval;
}