diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-17 10:29:22 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-17 10:29:22 +0000 |
commit | c7e30df84b74650177dcb9ebcf10d93f235ffb12 (patch) | |
tree | 824902ba221886d42966346c76169bbff0889f86 /gcc/gimple.c | |
parent | 0f0057aa53f9ebeef85f164ce8c67f35d760e3fd (diff) | |
download | gcc-c7e30df84b74650177dcb9ebcf10d93f235ffb12.tar.gz |
2009-06-17 Richard Guenther <rguenther@suse.de>
PR tree-optimization/40389
* tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
to addressable types.
* gimple.c (walk_stmt_load_store_addr_ops): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148597 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 91057b4db89..4f18b78aee6 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -3267,7 +3267,7 @@ walk_stmt_load_store_addr_ops (gimple stmt, void *data, if (visit_addr && gimple_call_return_slot_opt_p (stmt) && gimple_call_lhs (stmt) != NULL_TREE - && TREE_ADDRESSABLE (gimple_call_lhs (stmt))) + && TREE_ADDRESSABLE (TREE_TYPE (gimple_call_lhs (stmt)))) ret |= visit_addr (stmt, gimple_call_lhs (stmt), data); } else if (gimple_code (stmt) == GIMPLE_ASM) |