mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
1 parent
8ad75a9bf3
commit
8583fd7f9f
2 files changed
+14
-1
No files matched your search
+3
-1
@@ -1480,7 +1480,9 @@ static LLVMValueRef gen_cmp_expr(CodeGen *g, AstNode *node) {
|
||||
} else {
|
||||
zig_unreachable();
|
||||
}
|
||||
} else if (op1_type->id == TypeTableEntryIdPureError) {
|
||||
} else if (op1_type->id == TypeTableEntryIdPureError ||
|
||||
op1_type->id == TypeTableEntryIdPointer)
|
||||
{
|
||||
LLVMIntPredicate pred = cmp_op_to_int_predicate(node->data.bin_op_expr.bin_op, false);
|
||||
return LLVMBuildICmp(g->builder, pred, val1, val2, "");
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user