Skip to content
Snippets Groups Projects
Commit 78780606 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

Merge branch 'fix/michele/correct-use-of-find-by-name' into 'master'

Handle exception of find_by_name when building a destructor call.

See merge request frama-c/frama-c!4089
parents b2007957 df80027b
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,11 @@ let add_destructor (_, l as acc) var =
| [] -> acc
| [ attr ] ->
let mk_call f e args =
let kf = Globals.Functions.find_by_name f in
let kf =
try Globals.Functions.find_by_name f
with Not_found ->
Kernel.fatal "Destructor function %s does not exist" f
in
let e =
match Globals.Functions.get_params kf with
| vi :: _ ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment