summaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-12 19:54:59 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-12 19:54:59 +0000
commit8d97f76285fac63114f6acf4e6fe3b6993b81ad0 (patch)
treeeaf5c9d2dc416fbd2ca3ae58d390a18583274b1d /gcc/java/class.c
parent34f59c2db330e75917bbb443e54cd0b014ce549b (diff)
downloadgcc-8d97f76285fac63114f6acf4e6fe3b6993b81ad0.tar.gz
* class.c (inherits_from_p): Do load_class if needed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100860 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 68732b74dd5..a555bf09882 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;