diff options
Diffstat (limited to 'gcc/objc/objc-act.h')
-rw-r--r-- | gcc/objc/objc-act.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/objc/objc-act.h b/gcc/objc/objc-act.h index d8bf0f62f93..c8edd64bcf2 100644 --- a/gcc/objc/objc-act.h +++ b/gcc/objc/objc-act.h @@ -81,7 +81,8 @@ tree objc_eh_personality (void); #define SIZEOF_OBJC_TYPE_LANG_SPECIFIC sizeof (struct lang_type) #define ALLOC_OBJC_TYPE_LANG_SPECIFIC(NODE) \ do { \ - TYPE_LANG_SPECIFIC (NODE) = GGC_CNEW (struct lang_type); \ + TYPE_LANG_SPECIFIC (NODE) \ + = ggc_alloc_cleared_lang_type (sizeof (struct lang_type)); \ } while (0) #define TYPE_HAS_OBJC_INFO(TYPE) \ |