diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-09 19:33:58 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-09 19:33:58 +0000 |
commit | 740f575d38d505f003b9a7dfc15f14676cf899b1 (patch) | |
tree | 540334d2af3e20e57739f69b52dc6b85bb9826a8 /gcc/tree-cfg.c | |
parent | 621ea65c3942a598d3725af66adefc0968d2490f (diff) | |
download | ppe42-gcc-740f575d38d505f003b9a7dfc15f14676cf899b1.tar.gz ppe42-gcc-740f575d38d505f003b9a7dfc15f14676cf899b1.zip |
* tree-cfg.c (create_bb): Remove unnecessary memset.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90360 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 8da78c8ff0d..8c1a06f621c 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -375,9 +375,10 @@ create_bb (void *h, void *e, basic_block after) gcc_assert (!e); - /* Create and initialize a new basic block. */ + /* Create and initialize a new basic block. Since alloc_block uses + ggc_alloc_cleared to allocate a basic block, we do not have to + clear the newly allocated basic block here. */ bb = alloc_block (); - memset (bb, 0, sizeof (*bb)); bb->index = last_basic_block; bb->flags = BB_NEW; |