Commit 7e9df5c3 authored by Götz Lindenmaier's avatar Götz Lindenmaier
Browse files

more verbose assertion

[r1565]
parent 718be538
......@@ -69,9 +69,14 @@ entity *get_inherited_methods_implementation(entity *inh_meth) {
if (get_irn_op(addr) == op_Const) {
impl_meth = tarval_to_entity(get_Const_tarval(addr));
} else {
assert(0 && "Complex constant values not supported -- adress of method should be straight constant!");
}
if (impl_meth && (get_entity_peculiarity(impl_meth) != existent)) {
printf("this_meth: "); DDMEO(inh_meth);
printf("impl meth: "); DDMEO(impl_meth);
assert(!impl_meth || get_entity_peculiarity(impl_meth) == existent);
}
assert(!impl_meth || get_entity_peculiarity(impl_meth) == existent);
return impl_meth? impl_meth : inh_meth;
}
......
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