Commit 0a582743 by Richard Guenther Committed by Richard Biener

tree-nested.c (build_addr): Use build_fold_addr_expr.

2010-11-04  Richard Guenther  <rguenther@suse.de>

	* tree-nested.c (build_addr): Use build_fold_addr_expr.

From-SVN: r166314
parent ab040cea
2010-11-04 Richard Guenther <rguenther@suse.de> 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 PR tree-optimization/45991
* gimplify.c (force_gimple_operand_1): Use the provded test * gimplify.c (force_gimple_operand_1): Use the provded test
function in the initial test. function in the initial test.
...@@ -184,7 +184,7 @@ build_addr (tree exp, tree context) ...@@ -184,7 +184,7 @@ build_addr (tree exp, tree context)
way the properties are for the ADDR_EXPR are computed properly. */ way the properties are for the ADDR_EXPR are computed properly. */
save_context = current_function_decl; save_context = current_function_decl;
current_function_decl = context; 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; current_function_decl = save_context;
return retval; return retval;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment