aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bitmap.h
diff options
authorChristopher Li <sparse@chrisli.org>2011-08-14 14:10:09 -0700
committerChristopher Li <sparse@chrisli.org>2011-08-14 15:00:48 -0700
commitc0719f0fbb21d16a786fdf202c7f424e40abf51b (patch)
tree519ce534b074b9b69a1b850f36dc75ec9da47549 /bitmap.h
parent5b57cb8105f9fe00119a12462f09f3106b1e6117 (diff)
downloadsparse-dev-c0719f0fbb21d16a786fdf202c7f424e40abf51b.tar.gz
Fix inlining switch statement.
In sparse, inline is replacing the function call expression with a compound statment of inline function body. During the process, all reference to the function arguments need to replaced with calling arguments. When inlining the case statement. Sparse forgets to replace the case_label->stmt to the new version. If it has inner inline function call, it will cause the orignal copy of the function definition get modified. That should never happen. It cause warning error when the inline function call the second time. With this change, validations/bug_inline_switch.c no longer generate warning. Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'bitmap.h')
0 files changed, 0 insertions, 0 deletions