From 0ed25bad9caa557c08bcd1fb90e50f5685341502 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 6 Jun 2016 13:11:04 +0300 Subject: [PATCH] flow: set final_pass if we have to bail on a function To be honest, this just seemed like the right thing to do. I'm not positive if it makes a difference. I've been running with it for a few months. 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 ef59974d..1c1d81e5 100644 --- a/smatch_flow.c +++ b/smatch_flow.c @@ -927,6 +927,7 @@ void __split_stmt(struct statement *stmt) if (out_of_memory() || taking_too_long()) { __bail_on_rest_of_function = 1; + final_pass = 1; sm_msg("Function too hairy. Giving up."); fake_a_return(); final_pass = 0; /* turn off sm_msg() from here */ -- 2.11.4.GIT