From 37c93a6344238ddd4c09a5f835bcea3b98bb6466 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 14 Dec 2020 17:31:12 +0300 Subject: [PATCH] param_to_mtag_data: don't record fake assignments This information is useless and duplicative. This stuff can end up taking tons of database space which means that the return_states are not used. Signed-off-by: Dan Carpenter --- smatch_param_to_mtag_data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smatch_param_to_mtag_data.c b/smatch_param_to_mtag_data.c index 454c512e..7ccd54d3 100644 --- a/smatch_param_to_mtag_data.c +++ b/smatch_param_to_mtag_data.c @@ -87,6 +87,8 @@ static void match_assign(struct expression *expr) if (expr->op != '=') return; + if (__in_fake_var_assign || __in_fake_assign) + return; left = strip_expr(expr->left); if (is_local_variable(left)) return; -- 2.11.4.GIT