Commit 279bc8dd authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Fix typo.

The negation accidentally got lost when using be_mode_needs_gp_reg().
parent 179304d4
......@@ -1985,7 +1985,7 @@ static ir_node *gen_compare_swap(ir_node *node)
ir_mode *mode = get_irn_mode(old);
assert(get_irn_mode(new) == mode);
if (be_mode_needs_gp_reg(mode) || get_mode_size_bits(mode) != 32)
if (!be_mode_needs_gp_reg(mode) || get_mode_size_bits(mode) != 32)
panic("compare and swap only allowed for 32bit values");
return cas;
Supports Markdown
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