summaryrefslogtreecommitdiff
path: root/gcc/cp/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r--gcc/cp/lex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index 43d70941ec4..2b32d01f4b3 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -1616,8 +1616,8 @@ cp_make_lang_type (code)
{
struct lang_type *pi;
- pi = (struct lang_type *) ggc_alloc (sizeof (struct lang_type));
- bzero ((char *) pi, (int) sizeof (struct lang_type));
+ pi = ((struct lang_type *)
+ ggc_alloc_cleared (sizeof (struct lang_type)));
TYPE_LANG_SPECIFIC (t) = pi;
SET_CLASSTYPE_INTERFACE_UNKNOWN_X (t, interface_unknown);