sparse: introduce get_expression_value_nomod()
commit2f20516480062187b433e07620f5df558481a068
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Apr 2012 07:44:45 +0000 (24 10:44 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Apr 2012 07:44:45 +0000 (24 10:44 +0300)
tree4dcc4ed19a6fdc026da6d4830448bee0899cb774
parent99a5c66cac3902626035d4ab7f402ae65abaacaf
sparse: introduce get_expression_value_nomod()

This is an ugly hack, of course.

The problem is that I want to deal with EXPR_SIZEOF expressions but when I
call get_implied_value() on one of these then Sparse turns it into an
EXPR_VALUE behind my back.

I would change it so that Sparse doesn't change sizeof expressions into
value expressions, but Sparse relies on this behavior for some of its
checks.  Probably I should hunt down where that behavior is needed, and
do an explicit call to evaluate_expression() there.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
expand.c
expression.h
smatch_math.c