diff options
author | Christopher Li <sparse@chrisli.org> | 2007-03-02 12:09:24 -0800 |
---|---|---|
committer | Josh Triplett <josh@freedesktop.org> | 2007-03-02 14:33:54 -0800 |
commit | dd580753ccf1a372e3ff19ac90fdbfc92e94ca66 (patch) | |
tree | 045c200ca51480af9f9fe01e94782769b54b918e /expand.c | |
parent | Add static to declarations in test cases, to remove unrelated warnings. (diff) | |
download | sparse-dd580753ccf1a372e3ff19ac90fdbfc92e94ca66.tar.gz sparse-dd580753ccf1a372e3ff19ac90fdbfc92e94ca66.tar.bz2 sparse-dd580753ccf1a372e3ff19ac90fdbfc92e94ca66.zip |
Add annotation for inline function call.
For inline functions, Sparse inlines the function body at evaluation. It is
very hard to find out the original function call. This change preserves the
original call as an annotation.
Signed-Off-By: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'expand.c')
-rw-r--r-- | expand.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1053,9 +1053,9 @@ static int expand_compound(struct statement *stmt) if (stmt->ret) expand_symbol(stmt->ret); - cost = 0; - last = NULL; - statements = 0; + last = stmt->args; + cost = expand_statement(last); + statements = last != NULL; FOR_EACH_PTR(stmt->stmts, s) { statements++; last = s; |