From c678b3040afca83390ffa9218d5b8eb8cd70d719 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 11 Oct 2011 14:29:43 +0300 Subject: [PATCH] flow: set position for global variables This means that the line number for global variables gets set correctly. Signed-off-by: Dan Carpenter --- smatch_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/smatch_flow.c b/smatch_flow.c index 67a3a8f0..215fe0ec 100644 --- a/smatch_flow.c +++ b/smatch_flow.c @@ -792,6 +792,7 @@ static void split_functions(struct symbol_list *sym_list) struct symbol *sym; FOR_EACH_PTR(sym_list, sym) { + set_position(sym->pos); if (sym->type == SYM_NODE && get_base_type(sym)->type == SYM_FN) { split_function(sym); process_inlines(); -- 2.11.4.GIT