Commit f7cb6357 by Richard Kenner

(finish_anon_union): Check simple_cst_equal result against 0.

From-SVN: r9804
parent 2507f3b5
......@@ -2258,7 +2258,8 @@ finish_anon_union (anon_union_decl)
/* Only write out one anon union element--choose the one that
can hold them all. */
if (main_decl == NULL_TREE
&& simple_cst_equal (DECL_SIZE (decl), DECL_SIZE (anon_union_decl)))
&& 1 == simple_cst_equal (DECL_SIZE (decl),
DECL_SIZE (anon_union_decl)))
{
main_decl = decl;
}
......
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