From d2df1fd6e0cd366b2b03824e9e747c0b965f8766 Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Wed, 18 Jan 2012 16:21:51 +0100 Subject: [PATCH] condition instead of assert --- ir/tr/typewalk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.20.1