Hi. One fix of indentation that leads to -Wmisleading-indentation in Clang.
I'm going to install the patch. Martin gcc/ChangeLog: 2020-05-15 Martin Liska <mli...@suse.cz> * hsa-gen.c (get_symbol_for_decl): Fix misleading indentation warning. --- gcc/hsa-gen.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/gcc/hsa-gen.c b/gcc/hsa-gen.c index d407bcf503a..43baa2e82c8 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; }