fix frontend crash when running on Java 8

Reviewed By: jeremydubreil

Differential Revision: D3297326

fbshipit-source-id: 04986db
master
Sam Blackshear 9 years ago committed by Facebook Github Bot 6
parent 6d8d9f56c2
commit 44edd9ba7f

@ -353,8 +353,10 @@ let create_local_procdesc program linereader cfg tenv node m =
Cfg.Procdesc.set_start_node procdesc start_node;
Cfg.Procdesc.set_exit_node procdesc exit_node;
Cfg.Node.add_locals_ret_declaration start_node locals;
with JBir.Subroutine ->
L.err "create_local_procdesc raised JBir.Subroutine on %a@." Procname.pp proc_name in
with JBir.Subroutine | JBasics.Class_structure_error _ ->
L.err
"create_local_procdesc raised JBir.Subroutine or JBasics.Class_structure_error on %a@."
Procname.pp proc_name in
match lookup_procdesc cfg proc_name with
| Unknown ->
create_new_procdesc ()

Loading…
Cancel
Save