From 7e9df5c359fe3f78c74b1c1038452ec7a3a7c31d Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Fri, 25 Jul 2003 08:19:26 +0000 Subject: [PATCH] more verbose assertion [r1565] --- ir/ana/cgana.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ir/ana/cgana.c b/ir/ana/cgana.c index 9b6663922..471c4e7e8 100644 --- a/ir/ana/cgana.c +++ b/ir/ana/cgana.c @@ -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; } -- 2.20.1