summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-06-07 08:00:28 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-06-07 08:00:28 +0200
commit41c56a487242c97924c4a0eb26be3b3b0a0b42ad (patch)
tree0f9ef196ba6a13d6c53837bbb9e66b692b945842 /src
parentaf186657d97455d83485997b3f517e2bbb261c7d (diff)
Adapt to automatic mode inference of 'Minus'.
Diffstat (limited to 'src')
-rw-r--r--src/firm/ast2firm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/firm/ast2firm.c b/src/firm/ast2firm.c
index 9bf1dda..f82687d 100644
--- a/src/firm/ast2firm.c
+++ b/src/firm/ast2firm.c
@@ -1658,7 +1658,7 @@ static ir_node *negate_to_firm(unary_expression_t const *const expr)
type_t *const type = skip_typeref(expr->base.type);
ir_mode *const mode = get_ir_mode_arithmetic(type);
ir_node *const value = create_conv(dbgi, expression_to_value(expr->value), mode);
- return new_d_Minus(dbgi, value, mode);
+ return new_d_Minus(dbgi, value);
}
static ir_node *adjust_for_pointer_arithmetic(dbg_info *dbgi, ir_node *value,
@@ -2862,8 +2862,8 @@ static complex_value complex_negate_to_firm(const unary_expression_t *expr)
ir_mode *mode = get_complex_mode_arithmetic(expr->base.type);
cvalue = complex_conv(dbgi, cvalue, mode);
return (complex_value) {
- new_d_Minus(dbgi, cvalue.real, mode),
- new_d_Minus(dbgi, cvalue.imag, mode)
+ new_d_Minus(dbgi, cvalue.real),
+ new_d_Minus(dbgi, cvalue.imag)
};
}
@@ -2875,7 +2875,7 @@ static complex_value complex_complement_to_firm(const unary_expression_t *expr)
cvalue = complex_conv(dbgi, cvalue, mode);
return (complex_value) {
cvalue.real,
- new_d_Minus(dbgi, cvalue.imag, mode)
+ new_d_Minus(dbgi, cvalue.imag)
};
}