summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authordvyukov <dvyukov@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-12 18:03:36 +0000
committerdvyukov <dvyukov@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-12 18:03:36 +0000
commit551787a59bd191d508ee361ac5d0ff9649cb3658 (patch)
tree17a51ca1704bb2ad6e261afceda3abcb3bff4f4c /gcc/cgraphunit.c
parentcaf47ebd0ba00d947b8d7920744a48b5179b33ad (diff)
downloadgcc-551787a59bd191d508ee361ac5d0ff9649cb3658.tar.gz
Fix flags for edges from/to entry/exit basic blocks.
* cgraphunit.c (init_lowered_empty_function): Fix flags for new edges. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182251 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 886a2def0e5..086effb8fb8 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1459,8 +1459,8 @@ init_lowered_empty_function (tree decl)
/* Create BB for body of the function and connect it properly. */
bb = create_basic_block (NULL, (void *) 0, ENTRY_BLOCK_PTR);
- make_edge (ENTRY_BLOCK_PTR, bb, 0);
- make_edge (bb, EXIT_BLOCK_PTR, 0);
+ make_edge (ENTRY_BLOCK_PTR, bb, EDGE_FALLTHRU);
+ make_edge (bb, EXIT_BLOCK_PTR, EDGE_FALLTHRU);
return bb;
}