diff options
author | Geoffrey Keating <geoffk@apple.com> | 2003-07-14 21:35:37 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2003-07-14 21:35:37 +0000 |
commit | 18009d039eecc8f44b6993fa24997c99178cee5e (patch) | |
tree | 8b6abbcde0d4773318291e31a4e7d3d8da247b35 /gcc/objc/objc-act.c | |
parent | 8d83f79225703195e325dba0138432382e4dfab0 (diff) | |
download | gcc-18009d039eecc8f44b6993fa24997c99178cee5e.zip gcc-18009d039eecc8f44b6993fa24997c99178cee5e.tar.gz gcc-18009d039eecc8f44b6993fa24997c99178cee5e.tar.bz2 |
objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
* objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
(TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
(SET_TYPE_PROTOCOL_LIST): New.
* objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
(get_object_reference): Likewise.
From-SVN: r69364
Diffstat (limited to 'gcc/objc/objc-act.c')
-rw-r--r-- | gcc/objc/objc-act.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index f7f07f9..f84d9f20 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -939,7 +939,7 @@ get_static_reference (interface, protocols) /* Look up protocols and install in lang specific list. Note that the protocol list can have a different lifetime than T! */ - TYPE_PROTOCOL_LIST (t) = lookup_and_install_protocols (protocols); + SET_TYPE_PROTOCOL_LIST (t, lookup_and_install_protocols (protocols)); /* This forces a new pointer type to be created later (in build_pointer_type)...so that the new template @@ -988,7 +988,7 @@ get_object_reference (protocols) TYPE_NEXT_VARIANT (m) = t; /* Look up protocols...and install in lang specific list */ - TYPE_PROTOCOL_LIST (t) = lookup_and_install_protocols (protocols); + SET_TYPE_PROTOCOL_LIST (t, lookup_and_install_protocols (protocols)); /* This forces a new pointer type to be created later (in build_pointer_type)...so that the new template |