mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
move more tests to self-hosted land
This commit is contained in:
1 parent
579856e502
commit
7f56e4ac16
3 files changed
+181
-294
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user