diff options
author | 2004-07-31 23:00:46 -0700 | |
---|---|---|
committer | 2005-04-07 21:02:28 -0700 | |
commit | e73f52c044b51d7281679cad945ee105c64076cc (patch) | |
tree | d2ab7593562a126033bf7d9eb84a9704eca68c3e /inline.c | |
parent | Teach linearizer about computed goto's. (diff) | |
download | sparse-e73f52c044b51d7281679cad945ee105c64076cc.tar.gz sparse-e73f52c044b51d7281679cad945ee105c64076cc.tar.bz2 sparse-e73f52c044b51d7281679cad945ee105c64076cc.zip |
Fix symbol copy on inlining.
Stupid stupid bugs. This makes inlining work a lot better.
Diffstat (limited to 'inline.c')
-rw-r--r-- | inline.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -375,8 +375,10 @@ static struct symbol *create_copy_symbol(struct symbol *orig) sym = alloc_symbol(orig->pos, orig->type); sym->ident = orig->ident; sym->ctype = orig->ctype; + sym->used = orig->used; sym->initializer = NULL; set_replace(orig, sym); + orig = sym; } return orig; } |