aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-22 21:17:12 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:03:38 -0700
commit1b71fb3a43dcc8f73a60c6a2d980eefc2375cc85 (patch)
tree171077dae463b11586e9070ad3626f7b6b3857a6 /inline.c
parentGet rid of the old "iterate()" interfaces. (diff)
downloadsparse-1b71fb3a43dcc8f73a60c6a2d980eefc2375cc85.tar.gz
sparse-1b71fb3a43dcc8f73a60c6a2d980eefc2375cc85.tar.bz2
sparse-1b71fb3a43dcc8f73a60c6a2d980eefc2375cc85.zip
Copy STMT_INTERNAL properly when inlining
(In practice, it should always be a constant, so it did the right thing. But maybe it becomes that only after expansion at the inlining site..)
Diffstat (limited to 'inline.c')
-rw-r--r--inline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/inline.c b/inline.c
index 1dced4d..fda874d 100644
--- a/inline.c
+++ b/inline.c
@@ -270,6 +270,7 @@ static struct statement *copy_one_statement(struct statement *stmt)
switch(stmt->type) {
case STMT_NONE:
break;
+ case STMT_INTERNAL:
case STMT_EXPRESSION: {
struct expression *expr = copy_expression(stmt->expression);
if (expr == stmt->expression)