diff options
Diffstat (limited to 'gcc/hsa-gen.c')
-rw-r--r-- | gcc/hsa-gen.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/hsa-gen.c b/gcc/hsa-gen.c index d407bcf5..43baa2e 100644 --- a/gcc/hsa-gen.c +++ b/gcc/hsa-gen.c @@ -882,13 +882,13 @@ get_symbol_for_decl (tree decl) Iterate elements whether a symbol is already in m_global_symbols of not. */ - if (is_in_global_vars && !sym->m_emitted_to_brig) - { - for (unsigned i = 0; i < hsa_cfun->m_global_symbols.length (); i++) - if (hsa_cfun->m_global_symbols[i] == sym) - return *slot; - hsa_cfun->m_global_symbols.safe_push (sym); - } + if (is_in_global_vars && !sym->m_emitted_to_brig) + { + for (unsigned i = 0; i < hsa_cfun->m_global_symbols.length (); i++) + if (hsa_cfun->m_global_symbols[i] == sym) + return *slot; + hsa_cfun->m_global_symbols.safe_push (sym); + } return *slot; } |