+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>
* c-decl.c: Do not include tree-mudflap.h
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);
if (t &&
TREE_CODE (t) == ADDR_EXPR
otr_type = ie->indirect_info->otr_type;
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);
if (!t)
return NULL_TREE;