mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Duplicate emit of expressions on negation would incorrectly compile negated macros.
This commit is contained in:
@@ -2694,8 +2694,6 @@ static void llvm_emit_unary_expr(GenContext *c, BEValue *value, Expr *expr)
|
||||
return;
|
||||
}
|
||||
assert(type->canonical != type_bool);
|
||||
llvm_emit_expr(c, value, expr->unary_expr.expr);
|
||||
llvm_value_rvalue(c, value);
|
||||
if (active_target.feature.trap_on_wrap && !type_flat_is_vector(value->type))
|
||||
{
|
||||
LLVMValueRef zero = llvm_get_zero(c, expr->unary_expr.expr->type);
|
||||
|
||||
Reference in New Issue
Block a user