From 25cb722c1c4361e5f0b53da1da84a6ec763e2bcd Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 30 Jan 2015 18:35:32 +0300 Subject: [PATCH] type_val: update to handle PARAM_SET from the db Some of the ADD_VALUE information in the database is now PARAM_SET but I forgot to update smatch_type_val.c. Oops. Signed-off-by: Dan Carpenter --- smatch_type_val.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smatch_type_val.c b/smatch_type_val.c index 85e8097f..6e501380 100644 --- a/smatch_type_val.c +++ b/smatch_type_val.c @@ -409,6 +409,8 @@ void register_type_val(int id) add_hook(&unop_expr, OP_HOOK); add_hook(&asm_expr, ASM_HOOK); select_return_states_hook(ADDED_VALUE, &db_param_add); + select_return_states_hook(PARAM_SET, &db_param_add); + add_hook(&match_inline_start, INLINE_FN_START); add_hook(&match_inline_end, INLINE_FN_END); -- 2.11.4.GIT