aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-03-23 23:57:50 +0000
committerDJ Delorie <dj@redhat.com>2001-03-23 23:57:50 +0000
commit079c672a7a387d8324fa11348b0fa6b87016f9dc (patch)
treeed991a8c3e99668aaac992b92855dc84d71c767e /libiberty/cp-demangle.c
parentc0e61796d0ad9af35747d8b3b1aaad03e13fd0e4 (diff)
downloadgdb-079c672a7a387d8324fa11348b0fa6b87016f9dc.zip
gdb-079c672a7a387d8324fa11348b0fa6b87016f9dc.tar.gz
gdb-079c672a7a387d8324fa11348b0fa6b87016f9dc.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r--libiberty/cp-demangle.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index b8255b3..8419eef 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -3446,15 +3446,11 @@ demangle_discriminator (dm, suppress_first)
/* Write the discriminator. The mangled number is two
less than the discriminator ordinal, counting from
zero. */
- RETURN_IF_ERROR (int_to_dyn_string (discriminator + 2,
+ RETURN_IF_ERROR (int_to_dyn_string (discriminator + 1,
(dyn_string_t) dm->result));
}
else
- {
- if (flag_verbose)
- /* A missing digit correspond to one. */
- RETURN_IF_ERROR (result_add_char (dm, '1'));
- }
+ return STATUS_ERROR;
if (flag_verbose)
RETURN_IF_ERROR (result_add_char (dm, ']'));
}