mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Allow unary plus.
This commit is contained in:
@@ -2332,6 +2332,9 @@ static void llvm_emit_unary_expr(GenContext *c, BEValue *value, Expr *expr)
|
||||
{
|
||||
case UNARYOP_ERROR:
|
||||
FATAL_ERROR("Illegal unary op %s", expr->unary_expr.operator);
|
||||
case UNARYOP_PLUS:
|
||||
// Folded
|
||||
UNREACHABLE
|
||||
case UNARYOP_NOT:
|
||||
llvm_emit_expr(c, value, inner);
|
||||
if (type_flat_is_vector(type))
|
||||
|
||||
Reference in New Issue
Block a user