Commit ecb78332 authored by yb9976's avatar yb9976
Browse files

Fixed warning in optimize build and added assertion.

parent 50c26e05
......@@ -1658,10 +1658,11 @@ static bool is_same_op(pset *set, ir_op *op)
static multi_op *get_user(multi_op *o)
{
assert(pset_count(o->multi_users) == 1);
multi_op *user;
multi_op *user = NULL;
foreach_pset(o->multi_users, multi_op, n) {
user = n;
}
assert(user && "Found no multi op user");
return user;
}
......
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