From: Andreas Zwinkau Date: Wed, 18 Jan 2012 15:21:51 +0000 (+0100) Subject: condition instead of assert X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d2df1fd6e0cd366b2b03824e9e747c0b965f8766;p=libfirm condition instead of assert --- diff --git a/ir/tr/typewalk.c b/ir/tr/typewalk.c index 523b1fe4c..360efd187 100644 --- a/ir/tr/typewalk.c +++ b/ir/tr/typewalk.c @@ -537,9 +537,9 @@ void class_walk_super2sub(class_walk_func *pre, tp = get_irp_type(i); if (is_Class_type(tp) && (get_class_n_supertypes(tp) == 0) && - type_not_visited(tp)) { + type_not_visited(tp) && + (tp != get_glob_type())) { assert(! is_frame_type(tp)); - assert(tp != get_glob_type()); class_walk_s2s_2(tp, pre, post, env); } }