Commit d0e0079b authored by Michael Beck's avatar Michael Beck
Browse files

Fixed new_d_defaultProj(), handle Bad predecessor.

parent c4276b16
......@@ -586,9 +586,10 @@ ir_node *new_d_Const_long(dbg_info *db, ir_mode *mode, long value)
ir_node *new_d_defaultProj(dbg_info *db, ir_node *arg, long max_proj)
ir_node *res;
assert(is_Cond(arg) || is_Bad(arg));
assert(get_irg_phase_state(current_ir_graph) == phase_building);
arg->attr.cond.default_proj = max_proj;
if (is_Cond(arg))
arg->attr.cond.default_proj = max_proj;
res = new_d_Proj(db, arg, mode_X, max_proj);
return res;
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