type: improve get_binop_type()
commit9ddd63187c5a385acd6915e3b696860ab0b3d242
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 May 2015 09:25:58 +0000 (4 12:25 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 May 2015 09:25:58 +0000 (4 12:25 +0300)
tree584ea58343f60a953fbfd9a9b939d8e8d3629a13
parent23b18dde222cc10a8ec520b3144a838f4354bad4
type: improve get_binop_type()

In the original code it returned NULL if we didn't know either the ->left
or ->right type.  But actually for some situations like "1 << foo" the type
of the binop is determined by the left hand side so we know the type even
if we don't know the type of the right hand side.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_type.c