Commit 7a68aade authored by Till Riedel's avatar Till Riedel
Browse files

returns after assert(0) inserted

[r1390]
parent 2176bbfd
......@@ -57,6 +57,7 @@ static entity * get_implementation(type * class, entity * method) {
}
}
assert(0 && "implemenation not found");
return NULL;
}
/* Returns the entity that contains the implementation of the inherited
......
......@@ -137,6 +137,7 @@ INLINE static const char* dbg_action_2_str(dbg_action a) {
return "string conversion not implemented";
else
assert(0);
return NULL;
}
}
......
......@@ -2116,6 +2116,7 @@ get_irn_irg(ir_node *node) {
return node->attr.end.irg;
} else {
assert(0 && "no irg attr");
return NULL;
}
}
......
......@@ -413,7 +413,9 @@ ir_node *copy_const_value(ir_node *n) {
case iro_Add:
nn = new_Add(copy_const_value(get_Add_left(n)), copy_const_value(get_Add_right(n)), m); break;
default:
assert(0 && "opdope invalid or not implemented"); break;
assert(0 && "opdope invalid or not implemented");
nn=NULL;
break;
}
return nn;
}
......
......@@ -1346,7 +1346,10 @@ entity *get_compound_member(type *tp, int pos)
else if (is_union_type(tp))
res = get_union_member(tp, pos);
else
{
assert(0 && "need struct, union or class to get a member");
res=NULL;
}
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