modification_hooks: don't save the expressions outside of functions
commitc5f89024e8c3606846e655a4e08c802c02c08445
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 6 Mar 2018 14:25:12 +0000 (6 17:25 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 6 Mar 2018 14:25:12 +0000 (6 17:25 +0300)
tree04154270e63bba612f6c4750845ee8bf1758c2dc
parent79a877b53564730d057849ef3c40f6fee9d95fac
modification_hooks: don't save the expressions outside of functions

It takes a huge amount of resources to save these modification hooks.
Especially because you have huge arrays and you're saving a bunch of
links to every element in the array.

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