diff options
author | Martin Liska <mliska@suse.cz> | 2020-05-15 12:34:12 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-05-15 12:34:27 +0200 |
commit | f8e1c0c01823b6d0b20f44c0f218e1798c2ff3b4 (patch) | |
tree | c4335ca10043a35e3d767660416eda5d92ef987e /gcc/hsa-gen.c | |
parent | b8db70e1f1cea312888470e1911c7b5e32333c61 (diff) | |
download | gcc-f8e1c0c01823b6d0b20f44c0f218e1798c2ff3b4.zip gcc-f8e1c0c01823b6d0b20f44c0f218e1798c2ff3b4.tar.gz gcc-f8e1c0c01823b6d0b20f44c0f218e1798c2ff3b4.tar.bz2 |
Fix clang [-Wmisleading-indentation] in hsa-gen.c.
* hsa-gen.c (get_symbol_for_decl): Fix misleading indentation
warning.
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; } |