Fix some bugs, satisfy more compilers.

This commit is contained in:
Christoffer Lerno
2020-03-26 16:37:32 +01:00
parent 540aea2104
commit ad404315d6
10 changed files with 22 additions and 17 deletions

View File

@@ -240,6 +240,7 @@ LLVMValueRef gencontext_emit_unary_expr(GenContext *context, Expr *expr)
case UNARYOP_DEC:
return gencontext_emit_pre_inc_dec(context, expr->unary_expr.expr, -1, false);
}
UNREACHABLE
}
@@ -430,6 +431,7 @@ static LLVMValueRef gencontext_emit_binary(GenContext *context, Expr *expr, LLVM
case BINARYOP_SHL_ASSIGN:
UNREACHABLE
}
UNREACHABLE
}
LLVMValueRef gencontext_emit_post_unary_expr(GenContext *context, Expr *expr)