(build_compound_expr): Use non_lvalue if value is 0.

From-SVN: r3277
This commit is contained in:
Richard Stallman 1993-01-19 15:09:34 +00:00
parent d023bff9eb
commit 439f602793

View File

@ -3645,7 +3645,10 @@ build_compound_expr (list)
list = TREE_OPERAND (list, 0);
#endif
return TREE_VALUE (list);
/* Don't let (0, 0) be null pointer constant. */
if (integer_zerop (TREE_VALUE (list)))
return non_lvalue (TREE_VALUE (list));
return TREE_VALUE (list);
}
if (TREE_CHAIN (list) != 0 && TREE_CHAIN (TREE_CHAIN (list)) == 0)