Commit 7859dde7 by Ian Lance Taylor Committed by Ben Elliston

cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.

	* cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
	(cplus_demangle_fill_dtor): Likewise.

Co-Authored-By: Ben Elliston <bje@au.ibm.com>

From-SVN: r147699
parent 31c98f49
2009-05-19 Ian Lance Taylor <iant@google.com>
Ben Elliston <bje@au.ibm.com>
* cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
(cplus_demangle_fill_dtor): Likewise.
2009-05-17 Julian Brown <julian@codesourcery.com> 2009-05-17 Julian Brown <julian@codesourcery.com>
* pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
......
...@@ -719,8 +719,8 @@ cplus_demangle_fill_ctor (struct demangle_component *p, ...@@ -719,8 +719,8 @@ cplus_demangle_fill_ctor (struct demangle_component *p,
{ {
if (p == NULL if (p == NULL
|| name == NULL || name == NULL
|| (kind < gnu_v3_complete_object_ctor || (int) kind < gnu_v3_complete_object_ctor
&& kind > gnu_v3_complete_object_allocating_ctor)) || (int) kind > gnu_v3_complete_object_allocating_ctor)
return 0; return 0;
p->type = DEMANGLE_COMPONENT_CTOR; p->type = DEMANGLE_COMPONENT_CTOR;
p->u.s_ctor.kind = kind; p->u.s_ctor.kind = kind;
...@@ -738,8 +738,8 @@ cplus_demangle_fill_dtor (struct demangle_component *p, ...@@ -738,8 +738,8 @@ cplus_demangle_fill_dtor (struct demangle_component *p,
{ {
if (p == NULL if (p == NULL
|| name == NULL || name == NULL
|| (kind < gnu_v3_deleting_dtor || (int) kind < gnu_v3_deleting_dtor
&& kind > gnu_v3_base_object_dtor)) || (int) kind > gnu_v3_base_object_dtor)
return 0; return 0;
p->type = DEMANGLE_COMPONENT_DTOR; p->type = DEMANGLE_COMPONENT_DTOR;
p->u.s_dtor.kind = kind; p->u.s_dtor.kind = kind;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment