Commit 8993beff authored by Matthias Braun's avatar Matthias Braun
Browse files

sparc: fix abort when matching addressmode Adds

parent 3f57d89f
......@@ -413,7 +413,7 @@ static ir_node *gen_Add(ir_node *node)
ir_node *left = get_Add_left(node);
/* is this simple address arithmetic? then we can let the linker do
* the calculation. */
if (is_SymConst(left)) {
if (is_SymConst(left) && get_irn_n_edges(left) == 1) {
dbg_info *dbgi = get_irn_dbg_info(node);
ir_node *block = be_transform_node(get_nodes_block(node));
address_t address;
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