Do not crash unless in debug mode

Reviewed By: jvillard

Differential Revision: D3950839

fbshipit-source-id: ffc34e7
master
Dino Distefano 8 years ago committed by Facebook Github Bot
parent 8f32c3cfe1
commit 777378e7cc

@ -831,7 +831,7 @@ let collect_postconditions wl tenv pdesc : Paths.PathSet.t * Specs.Visitedset.t
compute_visited !vset_ref in compute_visited !vset_ref in
do_join_post pname tenv pathset, visited with do_join_post pname tenv pathset, visited with
| exn when (match exn with Exceptions.Leak _ -> true | _ -> false) -> | exn when (match exn with Exceptions.Leak _ -> true | _ -> false) ->
raise (Failure "Leak in post collecion") in L.d_strln"Leak in post collection"; assert false in
L.d_strln L.d_strln
("#### [FUNCTION " ^ Procname.to_string pname ^ "] Postconditions after join ####"); ("#### [FUNCTION " ^ Procname.to_string pname ^ "] Postconditions after join ####");
L.d_increase_indent 1; L.d_increase_indent 1;

Loading…
Cancel
Save