Commit 5f947642 authored by Matthias Braun's avatar Matthias Braun
Browse files

sparc: fix node_has_sp_base()

parent b6787e36
......@@ -70,8 +70,7 @@ static bool node_has_sp_base(ir_node const *const node)
} else {
panic("Unexpected node %+F", node);
}
arch_register_t const *const reg
= arch_get_irn_register_in(node, n_sparc_FrameAddr_base);
arch_register_t const *const reg = arch_get_irn_register_in(node, input);
return reg == &sparc_registers[REG_SP];
}
......
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