This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(C++) tweak to fixed_type_or_null
- To: gcc-patches at gcc dot gnu dot org
- Subject: (C++) tweak to fixed_type_or_null
- From: Jason Merrill <jason at cygnus dot com>
- Date: Mon, 11 Oct 1999 18:14:49 -0700
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: