summaryrefslogtreecommitdiff
path: root/gcc/fortran/expr.c
diff options
context:
space:
mode:
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-19 17:42:51 +0000
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-19 17:42:51 +0000
commitdfa3fb6ab6ee3a6ad8c96ab3ca796fb645cc6afd (patch)
tree8ec237a8fb4cca5124b47fb04acac619c6387e9a /gcc/fortran/expr.c
parent046f323efd9149bb5d2d5638466e98ed238b7635 (diff)
Replace gfc_getmem with XCNEW, XCNEWVEC or xcalloc
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172728 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r--gcc/fortran/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c
index 1e316534388f..42b65c6a36b6 100644
--- a/gcc/fortran/expr.c
+++ b/gcc/fortran/expr.c
@@ -3583,7 +3583,7 @@ gfc_check_assign_symbol (gfc_symbol *sym, gfc_expr *rvalue)
lvalue.ts = sym->ts;
if (sym->as)
lvalue.rank = sym->as->rank;
- lvalue.symtree = (gfc_symtree *) gfc_getmem (sizeof (gfc_symtree));
+ lvalue.symtree = XCNEW (gfc_symtree);
lvalue.symtree->n.sym = sym;
lvalue.where = sym->declared_at;