mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
std: fix parse_u64 implementation and add test
also codegen implement comparision with pure errors
This commit is contained in:
1 parent
1d92700d08
commit
207862647c
4 files changed
+16
-1
No files matched your search
@@ -1269,6 +1269,9 @@ static LLVMValueRef gen_cmp_expr(CodeGen *g, AstNode *node) {
|
||||
} else {
|
||||
zig_unreachable();
|
||||
}
|
||||
} else if (op1_type->id == TypeTableEntryIdPureError) {
|
||||
LLVMIntPredicate pred = cmp_op_to_int_predicate(node->data.bin_op_expr.bin_op, false);
|
||||
return LLVMBuildICmp(g->builder, pred, val1, val2, "");
|
||||
} else {
|
||||
zig_unreachable();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user