mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
* c-lang.c (evaluate_subexp_c): Call check_typedef.
This commit is contained in:
parent
ced4bf0cb4
commit
546e879ee8
@ -1,3 +1,7 @@
|
||||
2009-03-20 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* c-lang.c (evaluate_subexp_c): Call check_typedef.
|
||||
|
||||
2009-03-20 Tom Tromey <tromey@redhat.com>
|
||||
Julian Brown <julian@codesourcery.com>
|
||||
|
||||
|
@ -917,6 +917,10 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp,
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "unhandled c_string_type");
|
||||
}
|
||||
|
||||
/* Ensure TYPE_LENGTH is valid for TYPE. */
|
||||
check_typedef (type);
|
||||
|
||||
dest_charset = charset_for_string_type (dest_type);
|
||||
|
||||
++*pos;
|
||||
|
Loading…
Reference in New Issue
Block a user