[OBVIOUS] Fix clang [-Wmisleading-indentation] in hsa-gen.c.

Message ID 43a8252a-0a31-6117-bdfe-ff830a3114d4@suse.cz
State New
Headers show
Series
  • [OBVIOUS] Fix clang [-Wmisleading-indentation] in hsa-gen.c.
Related show

Commit Message

Martin Liška May 15, 2020, 10:30 a.m.
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  <mliska@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(-)

Patch

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;
     }