[cfg] Filter out join*->destructor->exit nodes as being not broken

Reviewed By: jvillard

Differential Revision: D7927878

fbshipit-source-id: 2c0eedd
master
Daiva Naudziuniene 7 years ago committed by Facebook Github Bot
parent dfe2ad5229
commit 63f1a341b5

@ -59,7 +59,7 @@ let is_proc_cfg_connected proc_desc =
in
let is_between_join_and_exit_node n =
match Procdesc.Node.get_kind n with
| Procdesc.Node.Stmt_node "between_join_and_exit" -> (
| Procdesc.Node.Stmt_node "between_join_and_exit" | Procdesc.Node.Stmt_node "Destruction" -> (
match Procdesc.Node.get_succs n with [n'] when is_exit_node n' -> true | _ -> false )
| _ ->
false

Loading…
Cancel
Save