diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-18 15:44:00 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-18 15:44:00 +0000 |
commit | 20498e00068a2c4e89a5bc7f39834762160e3767 (patch) | |
tree | a730c9292989135393a7c3907a0968ce58f61106 /gcc/tree-cfg.c | |
parent | 0c9892849c37c416169df46ff5cb281346289c38 (diff) | |
download | gcc-20498e00068a2c4e89a5bc7f39834762160e3767.tar.gz |
2005-12-18 Andreas Krebbel <krebbel1@de.ibm.com>
* tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.
* gcc.dg/20051201-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108755 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 3f925b3b012..d2e688e5afe 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -4769,7 +4769,7 @@ tree_flow_call_edges_add (sbitmap blocks) if (!bsi_end_p (bsi)) t = bsi_stmt (bsi); - if (need_fake_edge_p (t)) + if (t && need_fake_edge_p (t)) { edge e; |