This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

(C++) tweak to fixed_type_or_null


build_x_typeid was failing to initialize the variable passed to nonnull,
and it seems safer to fix that here.

1999-10-11  Jason Merrill  <jason@yorick.cygnus.com>

	* class.c (fixed_type_or_null): Always set *nonnull.

Index: class.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/class.c,v
retrieving revision 1.192
diff -c -p -r1.192 class.c
*** class.c	1999/10/10 19:23:38	1.192
--- class.c	1999/10/12 01:13:37
*************** fixed_type_or_null (instance, nonnull)
*** 4270,4275 ****
--- 4270,4278 ----
       tree instance;
       int *nonnull;
  {
+   if (nonnull)
+     *nonnull = 0;
+ 
    switch (TREE_CODE (instance))
      {
      case INDIRECT_REF:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]