helper: fix expr_to_chunk_helper() for struct members
commit067e2d805e0d2e26e89769fe4c74b884ca75617d
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Feb 2019 19:28:54 +0000 (7 22:28 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Feb 2019 19:28:54 +0000 (7 22:28 +0300)
tree09e3acddf75834514f6564a3366927a512ace486
parent4fa2d6d0af091ee8f80cb09369c6c8deb7a0a3e9
helper: fix expr_to_chunk_helper() for struct members

I feel like expr_to_vsl() and expr_to_chunk_helper() should work the
same...  I'd have to think why they are different functions.

Anyway, expr_to_vsl() is slightly buggy.  And instead of fixing it, I'm
just going to use the fact that I already know the vsl in this case to
side step the bug and be a speed up.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_helper.c