aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.osdl.org>2003-07-08 20:01:07 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:55 -0700
commitbca6859f6ede2e32dc95365a81d7cadd5686a1f3 (patch)
treeb5180419c4ddd7c6984b453bcba5b63348207809 /inline.c
parentThis makes function inlining largely work correctly. In order (diff)
downloadsparse-bca6859f6ede2e32dc95365a81d7cadd5686a1f3.tar.gz
sparse-bca6859f6ede2e32dc95365a81d7cadd5686a1f3.tar.bz2
sparse-bca6859f6ede2e32dc95365a81d7cadd5686a1f3.zip
Oops. The argument symbol initializers got lost on inlining,
because we didn't add them to the list of statement symbols.
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 373b32e..a6dc64d 100644
--- a/inline.c
+++ b/inline.c
@@ -400,6 +400,7 @@ int inline_function(struct expression *expr, struct symbol *sym)
add_symbol(&fn_symbol_list, a);
}
a->initializer = arg;
+ add_symbol(&stmt->syms, a);
NEXT_PTR_LIST(name);
} END_FOR_EACH_PTR;