evaluate: split out implementation of compatible_assignment_types
commit5798e4cf8fdb3090e4d4864e6d9824de69dfc786
authorJohn Keeping <john@keeping.me.uk>
Sun, 9 Mar 2014 11:32:50 +0000 (9 11:32 +0000)
committerChristopher Li <sparse@chrisli.org>
Tue, 1 Apr 2014 07:18:13 +0000 (1 00:18 -0700)
tree80713458bb1758c5f990ac39c1117b48d70ab91d
parentcb14f76857ead767d3fa932b5606ed11f0c8482e
evaluate: split out implementation of compatible_assignment_types

This will allow us to reuse the logic when processing a transparent
union by checking each member in turn without printing a warning unless
none of the members match.

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
evaluate.c