mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 22:55:38 +08:00
ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when comparing param_index to VEC_length result.
* ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when comparing param_index to VEC_length result. From-SVN: r183166
This commit is contained in:
parent
8554df86e0
commit
9ab6f957a2
@ -1,3 +1,8 @@
|
|||||||
|
2012-01-13 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
* ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
|
||||||
|
comparing param_index to VEC_length result.
|
||||||
|
|
||||||
2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
|
2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
|
||||||
|
|
||||||
* c-decl.c: Do not include tree-mudflap.h
|
* c-decl.c: Do not include tree-mudflap.h
|
||||||
|
@ -1112,7 +1112,7 @@ ipa_get_indirect_edge_target (struct cgraph_edge *ie,
|
|||||||
|
|
||||||
if (!ie->indirect_info->polymorphic)
|
if (!ie->indirect_info->polymorphic)
|
||||||
{
|
{
|
||||||
tree t = (VEC_length (tree, known_vals) > param_index
|
tree t = (VEC_length (tree, known_vals) > (unsigned int) param_index
|
||||||
? VEC_index (tree, known_vals, param_index) : NULL);
|
? VEC_index (tree, known_vals, param_index) : NULL);
|
||||||
if (t &&
|
if (t &&
|
||||||
TREE_CODE (t) == ADDR_EXPR
|
TREE_CODE (t) == ADDR_EXPR
|
||||||
@ -1127,7 +1127,8 @@ ipa_get_indirect_edge_target (struct cgraph_edge *ie,
|
|||||||
otr_type = ie->indirect_info->otr_type;
|
otr_type = ie->indirect_info->otr_type;
|
||||||
|
|
||||||
t = VEC_index (tree, known_vals, param_index);
|
t = VEC_index (tree, known_vals, param_index);
|
||||||
if (!t && known_binfos && VEC_length (tree, known_binfos) > param_index)
|
if (!t && known_binfos
|
||||||
|
&& VEC_length (tree, known_binfos) > (unsigned int) param_index)
|
||||||
t = VEC_index (tree, known_binfos, param_index);
|
t = VEC_index (tree, known_binfos, param_index);
|
||||||
if (!t)
|
if (!t)
|
||||||
return NULL_TREE;
|
return NULL_TREE;
|
||||||
|
Loading…
Reference in New Issue
Block a user