diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-11-04 15:36:30 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-11-04 15:36:30 -0400 |
| commit | a2e32939305e470ce3d32c9d2667d3083158ddb3 (patch) | |
| tree | fef679349a0c2d2e25072e2960e39b2ec257fa07 /src/codegen.cpp | |
| parent | bc6c33b1b64822b0667ab88b73f4b5c4b302154f (diff) | |
| download | zig-a2e32939305e470ce3d32c9d2667d3083158ddb3.tar.gz zig-a2e32939305e470ce3d32c9d2667d3083158ddb3.zip | |
WIP moving all analysis to IR
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 9f19279bfc..086394a950 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -2965,6 +2965,7 @@ static LLVMValueRef ir_render_instruction(CodeGen *g, IrExecutable *executable, case IrInstructionIdToPtrType: case IrInstructionIdPtrTypeChild: case IrInstructionIdFieldPtr: + case IrInstructionIdSetFnTest: zig_unreachable(); case IrInstructionIdReturn: return ir_render_return(g, executable, (IrInstructionReturn *)instruction); @@ -2996,7 +2997,6 @@ static LLVMValueRef ir_render_instruction(CodeGen *g, IrExecutable *executable, return ir_render_struct_field_ptr(g, executable, (IrInstructionStructFieldPtr *)instruction); case IrInstructionIdSwitchBr: case IrInstructionIdPhi: - case IrInstructionIdBuiltinCall: case IrInstructionIdContainerInitList: case IrInstructionIdContainerInitFields: case IrInstructionIdReadField: @@ -5303,8 +5303,6 @@ static void get_c_type(CodeGen *g, TypeTableEntry *type_entry, Buf *out_buf) { } static void get_c_type_node(CodeGen *g, AstNode *type_node, Buf *out_buf) { - assert(type_node->type != NodeTypeSymbol || !type_node->data.symbol_expr.override_type_entry); - Expr *expr = get_resolved_expr(type_node); assert(expr->type_entry); assert(expr->type_entry->id == TypeTableEntryIdMetaType); |
