diff mbox series

[pushed] Fix coding style in IPA modref.

Message ID f5182ed5-b926-3846-bb6a-3a8f4c78cdaa@suse.cz
State New
Headers show
Series [pushed] Fix coding style in IPA modref. | expand

Commit Message

Martin Liška March 31, 2021, 8:51 a.m. UTC
Approved by Honza and pushed to master.

Martin

gcc/ChangeLog:

	* ipa-modref.c (analyze_ssa_name_flags): Fix coding style
	and one negated condition.
---
  gcc/ipa-modref.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c
index 5f33bb5b410..ef5e62beb0e 100644
--- a/gcc/ipa-modref.c
+++ b/gcc/ipa-modref.c
@@ -1673,7 +1673,7 @@  analyze_ssa_name_flags (tree name, vec<modref_lattice> &lattice, int depth,
  
  			if (!record_ipa)
  			  lattice[index].merge (call_flags);
-			if (record_ipa)
+			else
  			  lattice[index].add_escape_point (call, i,
  			     				   call_flags, true);
  		      }
@@ -1691,8 +1691,8 @@  analyze_ssa_name_flags (tree name, vec<modref_lattice> &lattice, int depth,
  			int call_flags = deref_flags
  			   (gimple_call_arg_flags (call, i), ignore_stores);
  			if (!record_ipa)
-			    lattice[index].merge (call_flags);
-			if (record_ipa)
+			  lattice[index].merge (call_flags);
+			else
  			  lattice[index].add_escape_point (call, i,
  							   call_flags, false);
  		      }