re PR c++/70498 (Libiberty Demangler segfaults (3))

PR c++/70498
	* cp-demangle.c (d_expression_1): Formatting fix.

From-SVN: r236445
This commit is contained in:
Jakub Jelinek 2016-05-19 10:49:30 +02:00 committed by Jakub Jelinek
parent a3fa753567
commit e1fe3c698f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-05-19 Jakub Jelinek <jakub@redhat.com>
PR c++/70498
* cp-demangle.c (d_expression_1): Formatting fix.
2016-05-18 Artemiy Volkov <artemiyv@acm.org> 2016-05-18 Artemiy Volkov <artemiyv@acm.org>
* cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference

View File

@ -3181,7 +3181,7 @@ d_expression_1 (struct d_info *di)
index = d_compact_number (di); index = d_compact_number (di);
if (index == INT_MAX || index == -1) if (index == INT_MAX || index == -1)
return NULL; return NULL;
index ++; index++;
} }
return d_make_function_param (di, index); return d_make_function_param (di, index);
} }