Work on unions and anonymous structs/unions.

This commit is contained in:
Christoffer Lerno
2020-04-09 13:49:51 +02:00
parent f53b378b0c
commit 7392b453a3
4 changed files with 27 additions and 29 deletions

View File

@@ -180,7 +180,6 @@ LLVMValueRef gencontext_emit_address(GenContext *context, Expr *expr)
case EXPR_EXPRESSION_LIST:
case EXPR_CAST:
case EXPR_MACRO_EXPR:
case EXPR_DESIGNATED_INIT:
UNREACHABLE
}
UNREACHABLE
@@ -968,9 +967,6 @@ LLVMValueRef gencontext_emit_expr(GenContext *context, Expr *expr)
{
case EXPR_POISONED:
UNREACHABLE
case EXPR_DESIGNATED_INIT:
// This is handled inside of initializer setup
UNREACHABLE
case EXPR_EXPR_BLOCK:
return gencontext_emit_expr_block(context, expr);
case EXPR_SCOPED_EXPR: