Commit 14ac3bfe by Richard Kenner

(largest_union_member): Check simple_cst_equal result against 0.

From-SVN: r9806
parent 856aa687
......@@ -1999,7 +1999,7 @@ largest_union_member (type)
tree f, type_size = TYPE_SIZE (type);
for (f = TYPE_FIELDS (type); f; f = TREE_CHAIN (f))
if (simple_cst_equal (DECL_SIZE (f), type_size))
if (simple_cst_equal (DECL_SIZE (f), type_size) == 1)
return f;
/* We should always find one. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment