aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadupdate.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2012-09-20 17:02:40 +0000
committerMarek Polacek <polacek@redhat.com>2012-09-20 17:02:40 +0000
commit2c795e5eb8ab5bafe5589ae852f8527f8c52a4f1 (patch)
tree2b978ae6eb0d059f819df9658163c390a0459c0e /gcc/tree-ssa-threadupdate.c
parent7f19f564f04092dece2c040f205d07056d3d717a (diff)
Don't cast XNEWVEC's result.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@191580 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-threadupdate.c')
-rw-r--r--gcc/tree-ssa-threadupdate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c
index ba6d69af942..2eee50ee1d6 100644
--- a/gcc/tree-ssa-threadupdate.c
+++ b/gcc/tree-ssa-threadupdate.c
@@ -1,5 +1,5 @@
/* Thread edges through blocks and update the control flow and SSA graphs.
- Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 201
+ Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of GCC.
@@ -362,7 +362,7 @@ create_edge_and_update_destination_phis (struct redirection_data *rd,
if (rd->outgoing_edge->aux)
{
- e->aux = (edge *) XNEWVEC (edge, 2);
+ e->aux = XNEWVEC (edge, 2);
THREAD_TARGET(e) = THREAD_TARGET (rd->outgoing_edge);
THREAD_TARGET2(e) = THREAD_TARGET2 (rd->outgoing_edge);
}
@@ -1143,7 +1143,7 @@ mark_threaded_blocks (bitmap threaded_blocks)
for (i = 0; i < VEC_length (edge, threaded_edges); i += 3)
{
edge e = VEC_index (edge, threaded_edges, i);
- edge *x = (edge *) XNEWVEC (edge, 2);
+ edge *x = XNEWVEC (edge, 2);
e->aux = x;
THREAD_TARGET (e) = VEC_index (edge, threaded_edges, i + 1);