Skip to content

Commit e404a35

Browse files
committed
Fix incorrect check
1 parent 0be7b37 commit e404a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ir_sccp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,7 @@ static uint32_t _ir_estimated_control(ir_ctx *ctx, ir_ref val)
19091909
}
19101910

19111911
IR_ASSERT(ir_op_flags[insn->op] & IR_OP_FLAG_DATA);
1912-
if (IR_OPND_KIND(ir_op_flags[insn->op], 1) & IR_OPND_CONTROL_DEP) {
1912+
if (IR_OPND_KIND(ir_op_flags[insn->op], 1) == IR_OPND_CONTROL_DEP) {
19131913
return insn->op1;
19141914
}
19151915

0 commit comments

Comments
 (0)