From d35310e309872f99917cb3d7dc67abd63023d33c Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Sun, 12 Jun 2005 12:54:59 -0700 Subject: * class.c (inherits_from_p): Do load_class if needed. From-SVN: r100860 --- gcc/java/class.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/java/class.c') diff --git a/gcc/java/class.c b/gcc/java/class.c index 68732b7..a555bf0 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -549,6 +549,8 @@ inherits_from_p (tree type1, tree type2) { if (type1 == type2) return 1; + if (! CLASS_LOADED_P (type1)) + load_class (type1, 1); type1 = CLASSTYPE_SUPER (type1); } return 0; -- cgit v1.1