(build_compound_expr): Use non_lvalue if value is 0.
From-SVN: r3277
This commit is contained in:
parent
d023bff9eb
commit
439f602793
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user