diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-02-13 13:13:21 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-02-13 13:13:21 +0000 |
commit | 1f303606f32422bcbb1cc464eda389aaa1f9dac9 (patch) | |
tree | 9c4c388c2c68bc259e6e1411008f3b14fed68fb4 /gcc/calls.c | |
parent | 8e8a14c238db56c785aa1bbf446d383a31719048 (diff) | |
download | gcc-1f303606f32422bcbb1cc464eda389aaa1f9dac9.tar.gz |
Replace XALLOCAVEC with XCNEWVEC (PR c/79471).
2017-02-13 Martin Liska <mliska@suse.cz>
PR c/79471
* calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245385 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 7b45b9a111d..6d5ef4e02a0 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -3262,8 +3262,7 @@ expand_call (tree exp, rtx target, int ignore) n_named_args = num_actuals; /* Make a vector to hold all the information about each arg. */ - args = XALLOCAVEC (struct arg_data, num_actuals); - memset (args, 0, num_actuals * sizeof (struct arg_data)); + args = XCNEWVEC (struct arg_data, num_actuals); /* Build up entries in the ARGS array, compute the size of the arguments into ARGS_SIZE, etc. */ @@ -4265,6 +4264,7 @@ expand_call (tree exp, rtx target, int ignore) currently_expanding_call--; free (stack_usage_map_buf); + free (args); /* Join result with returned bounds so caller may use them if needed. */ target = chkp_join_splitted_slot (target, valbnd); |