diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-31 23:00:46 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:02:28 -0700 |
| commit | e73f52c044b51d7281679cad945ee105c64076cc (patch) | |
| tree | d2ab7593562a126033bf7d9eb84a9704eca68c3e /inline.c | |
| parent | 0e55e7a5f68c81a5ff1897d6b878fd784bebea42 (diff) | |
| download | sparse-dev-e73f52c044b51d7281679cad945ee105c64076cc.tar.gz | |
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; } |
