rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used to build the decla...
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Wed, 3 Oct 2001 15:18:25 +0000 (15:18 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 3 Oct 2001 15:18:25 +0000 (15:18 +0000)
* rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
to build the declaration instead of the declaration itself.

From-SVN: r45994

gcc/cp/ChangeLog
gcc/cp/rtti.c

index f4d2d20e9d078fda93d9fdbae64ef70ec413ede3..c23768ee078a35940613c6656bfae85d2c030bc7 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
+       to build the declaration instead of the declaration itself.
+
 2001-10-02  Jason Merrill  <jason_merrill@redhat.com>
 
        * spew.c (end_input): No longer static.
index 6cdac79ac6af8dad51b3c9b20e775776b7de1fe6..c91b378a313d4160646928333115df10c647e6e1 100644 (file)
@@ -309,7 +309,7 @@ get_tinfo_decl (type)
       TREE_STATIC (d) = 1;
       DECL_EXTERNAL (d) = 1;
       TREE_PUBLIC (d) = 1;
-      if (flag_weak || !typeinfo_in_lib_p (d))
+      if (flag_weak || !typeinfo_in_lib_p (type))
        comdat_linkage (d);
       SET_DECL_ASSEMBLER_NAME (d, name);
       cp_finish_decl (d, NULL_TREE, NULL_TREE, 0);