mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-25 23:51:29 +08:00
* tree.c (build_vector_from_val): Use useless_type_conversion_p.
From-SVN: r166136
This commit is contained in:
parent
7e3f24b6d9
commit
eb8e7cb134
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user