diff options
Diffstat (limited to 'gcc/tree-ssa-sink.c')
-rw-r--r-- | gcc/tree-ssa-sink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-sink.c b/gcc/tree-ssa-sink.c index 9deec26b11d..436047b8e93 100644 --- a/gcc/tree-ssa-sink.c +++ b/gcc/tree-ssa-sink.c @@ -191,7 +191,8 @@ is_hidden_global_store (gimple stmt) } else if (INDIRECT_REF_P (lhs) - || TREE_CODE (lhs) == MEM_REF) + || TREE_CODE (lhs) == MEM_REF + || TREE_CODE (lhs) == TARGET_MEM_REF) return ptr_deref_may_alias_global_p (TREE_OPERAND (lhs, 0)); else if (CONSTANT_CLASS_P (lhs)) return true; |