diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-07-10 09:34:28 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-07-14 10:25:48 -0700 |
commit | bae45b8be57b2a2c22bf45f3eeb1118c328ad028 (patch) | |
tree | 6a8f97626d41a0ead37b0139f1c0c292041ef16f /libiberty/cp-demangle.c | |
parent | 004bb936d6d5f177af26ad4905595e843d5665a5 (diff) | |
download | gcc-bae45b8be57b2a2c22bf45f3eeb1118c328ad028.tar.gz |
demangler: don't treat lambda as a substitution candidate
libiberty/ChangeLog:
PR demangler/96143
* cp-demangle.c (d_lambda): Don't add substitution candidate.
* testsuite/demangle-expected: Update a few existing test cases
accordingly, and add a new test case.
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r-- | libiberty/cp-demangle.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index b413ba2be5f..aede23fbf6b 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -3776,9 +3776,6 @@ d_lambda (struct d_info *di) ret->u.s_unary_num.num = num; } - if (! d_add_substitution (di, ret)) - return NULL; - return ret; } |