mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-26 07:50:26 +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>
|
||||
|
||||
PR target/45250
|
||||
|
@ -1376,8 +1376,8 @@ build_vector_from_val (tree vectype, tree sc)
|
||||
if (sc == error_mark_node)
|
||||
return sc;
|
||||
|
||||
gcc_assert (lang_hooks.types_compatible_p (TREE_TYPE (sc),
|
||||
TREE_TYPE (vectype)));
|
||||
gcc_assert (useless_type_conversion_p (TREE_TYPE (sc),
|
||||
TREE_TYPE (vectype)));
|
||||
|
||||
v = VEC_alloc (constructor_elt, gc, nunits);
|
||||
for (i = 0; i < nunits; ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user