summaryrefslogtreecommitdiff
path: root/gcc/trans-mem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/trans-mem.cc')
-rw-r--r--gcc/trans-mem.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/trans-mem.cc b/gcc/trans-mem.cc
index e9feac2321c..ae2921f808e 100644
--- a/gcc/trans-mem.cc
+++ b/gcc/trans-mem.cc
@@ -1400,7 +1400,7 @@ thread_private_new_memory (basic_block entry_block, tree x)
/* Search DEF chain to find the original definition of this address. */
do
{
- if (ptr_deref_may_alias_global_p (x))
+ if (ptr_deref_may_alias_global_p (x, true))
{
/* Address escapes. This is not thread-private. */
retval = mem_non_local;