* tree.c (build_vector_from_val): Use useless_type_conversion_p.

From-SVN: r166136
This commit is contained in:
Nathan Froyd 2010-11-01 17:10:21 +00:00 committed by Nathan Froyd
parent 7e3f24b6d9
commit eb8e7cb134
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
* tree.c (build_vector_from_val): Use useless_type_conversion_p.
2010-11-01 Jakub Jelinek <jakub@redhat.com> 2010-11-01 Jakub Jelinek <jakub@redhat.com>
PR target/45250 PR target/45250

View File

@ -1376,8 +1376,8 @@ build_vector_from_val (tree vectype, tree sc)
if (sc == error_mark_node) if (sc == error_mark_node)
return sc; return sc;
gcc_assert (lang_hooks.types_compatible_p (TREE_TYPE (sc), gcc_assert (useless_type_conversion_p (TREE_TYPE (sc),
TREE_TYPE (vectype))); TREE_TYPE (vectype)));
v = VEC_alloc (constructor_elt, gc, nunits); v = VEC_alloc (constructor_elt, gc, nunits);
for (i = 0; i < nunits; ++i) for (i = 0; i < nunits; ++i)