Commit 43d387ca authored by Matthias Braun's avatar Matthias Braun
Browse files

amd64: Fix warning and potential bug

parent 04f2cf7e
......@@ -3043,7 +3043,10 @@ static ir_node *gen_saturating_increment(ir_node *const node)
},
.size = get_insn_size_from_mode(mode),
},
.u.immediate.offset = 1,
.u.immediate = {
.kind = X86_IMM_VALUE,
.offset = 1,
},
};
ir_node *inc_in[] = { operand };
......@@ -3062,7 +3065,10 @@ static ir_node *gen_saturating_increment(ir_node *const node)
},
.size = get_insn_size_from_mode(mode),
},
.u.immediate.offset = 0,
.u.immediate = {
.kind = X86_IMM_VALUE,
.offset = 0,
},
};
ir_node *in[2] = { value, eflags };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment