[infer][nullable] no longer fail hard when the nullable suggestion checker cannot compute the post of a procedure

Reviewed By: mbouaziz

Differential Revision: D6218804

fbshipit-source-id: 49efcba
master
Jeremy Dubreil 7 years ago committed by Facebook Github Bot
parent e2a75f2b46
commit b594cbdc5a

@ -185,8 +185,10 @@ let checker {Callbacks.summary; proc_desc; tenv} =
(* Assume all fields are not null in the beginning *)
let initial = Domain.empty in
let proc_data = ProcData.make_default proc_desc tenv in
match Analyzer.compute_post proc_data ~initial with
( match Analyzer.compute_post proc_data ~initial with
| Some post ->
report post proc_data ; summary
report post proc_data
| None ->
L.(die InternalError) "Analyzer failed to compute post for %a" Typ.Procname.pp proc_name
L.internal_error "Analyzer failed to compute post for %a@." Typ.Procname.pp proc_name ) ;
summary

Loading…
Cancel
Save