aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-struct-reorg.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2009-01-16 20:44:25 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2009-01-16 20:44:25 +0000
commit5be1c58c4de4f21561b39fd72e9861ec087a1374 (patch)
treea2c68bc9813da0e337eba95b9171246386e99d6f /gcc/ipa-struct-reorg.c
parent786ce82d44352369486d69add3cf3695b08998a2 (diff)
downloadgcc-5be1c58c4de4f21561b39fd72e9861ec087a1374.zip
gcc-5be1c58c4de4f21561b39fd72e9861ec087a1374.tar.gz
gcc-5be1c58c4de4f21561b39fd72e9861ec087a1374.tar.bz2
ebitmap.h (ebitmap_iter_init): Initialize all fields.
* ebitmap.h (ebitmap_iter_init): Initialize all fields. * ipa-struct-reorg.c (gen_struct_type): Replace known-true test with assertion. From-SVN: r143443
Diffstat (limited to 'gcc/ipa-struct-reorg.c')
-rw-r--r--gcc/ipa-struct-reorg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c
index d1d7b1c..cde905e 100644
--- a/gcc/ipa-struct-reorg.c
+++ b/gcc/ipa-struct-reorg.c
@@ -1865,8 +1865,9 @@ gen_struct_type (tree decl, tree new_str_type)
wr.wrap = 0;
wr.domain = NULL_TREE;
}
- else if (TREE_CODE (type_orig) == ARRAY_TYPE)
+ else
{
+ gcc_assert (TREE_CODE (type_orig) == ARRAY_TYPE);
wr.wrap = 1;
wr.domain = TYPE_DOMAIN (type_orig);
}