aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-06 22:21:32 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:04 -0700
commit087362e1942ba497d3fc9b4808f6d0e886bcd26a (patch)
tree7b572946678260be15366b703633dd2f9773b9dc /compile-i386.c
parentSimplify implied casts. (diff)
downloadsparse-087362e1942ba497d3fc9b4808f6d0e886bcd26a.tar.gz
sparse-087362e1942ba497d3fc9b4808f6d0e886bcd26a.tar.bz2
sparse-087362e1942ba497d3fc9b4808f6d0e886bcd26a.zip
Separate explicit and implied casts.
This also makes our evaluation simplification only happen for the implied ones. If you put an explicit cast somewhere, it does _not_ get combined with an implied one.
Diffstat (limited to 'compile-i386.c')
-rw-r--r--compile-i386.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile-i386.c b/compile-i386.c
index eeda410..c18c4d3 100644
--- a/compile-i386.c
+++ b/compile-i386.c
@@ -2348,6 +2348,7 @@ static struct storage *x86_expression(struct expression *expr)
warning(expr->pos, "invalid expression after evaluation");
return NULL;
case EXPR_CAST:
+ case EXPR_IMPLIED_CAST:
return emit_cast_expr(expr);
case EXPR_VALUE:
return emit_value(expr);