Fix conversion in a?0:ptr.
commit6471ec0a2bd523edd4bbc79277a33d0b853940fa
authorMichael Matz <matz@suse.de>
Sat, 14 Apr 2012 21:50:21 +0000 (14 23:50 +0200)
committerMichael Matz <matz@suse.de>
Wed, 18 Apr 2012 18:57:13 +0000 (18 20:57 +0200)
tree5a907084e0d9dc696d481e6380a53d893aad131c
parentf98c2306a0857ad3f8800f91e0554a27adc7f675
Fix conversion in a?0:ptr.

(cond ? 0 : ptr)->member wasn't handled correctly.  If one arm
is a null pointer constant (which also can be a pointer) the result
type is that of the other arm.
tccgen.c
tests/tcctest.c