move more tests to self-hosted land

This commit is contained in:
Andrew Kelley
2016-04-14 10:52:47 -07:00
parent 579856e502
commit 7f56e4ac16
3 changed files with 181 additions and 294 deletions

View File

@@ -1228,6 +1228,7 @@ static LLVMValueRef gen_prefix_op_expr(CodeGen *g, AstNode *node) {
} else {
err_val = expr_val;
}
add_debug_source_node(g, node);
LLVMValueRef zero = LLVMConstNull(g->err_tag_type->type_ref);
LLVMValueRef cond_val = LLVMBuildICmp(g->builder, LLVMIntEQ, err_val, zero, "");
LLVMBasicBlockRef err_block = LLVMAppendBasicBlock(g->cur_fn->fn_value, "UnwrapErrError");