summaryrefslogtreecommitdiffhomepage
path: root/ir/lower
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2017-12-13 14:37:13 +0100
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2017-12-13 14:37:37 +0100
commit98a332904420b944643d55d912ba01da46e6c46c (patch)
treee8e42da8de40c34bda8c6102e3fcaa312feaa74e /ir/lower
parent9e56543e0d255533a17608dcf8ad90fb3b2df03a (diff)
Cleanup: Use consistent conditions and add some braces
Diffstat (limited to 'ir/lower')
-rw-r--r--ir/lower/lower_calls.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ir/lower/lower_calls.c b/ir/lower/lower_calls.c
index a90dd76..3c3b499 100644
--- a/ir/lower/lower_calls.c
+++ b/ir/lower/lower_calls.c
@@ -892,12 +892,14 @@ static void transform_irg(lowering_env_t const *const env, ir_graph *const irg)
++n_param_com;
}
- if (arg_shift > 0)
+ if (arg_shift > 0) {
fix_parameter_entities(irg, arg_shift);
+ }
/* much easier if we have only one return */
- if (n_ret_com != 0)
+ if (n_ret_com > 0) {
assure_irg_properties(irg, IR_GRAPH_PROPERTY_ONE_RETURN);
+ }
ir_type *lowered_mtp = lower_mtp(env, mtp);
set_entity_type(ent, lowered_mtp);