Skip to content
Snippets Groups Projects
Commit 046ae587 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[kernel] protect is_entry_point against name mangling

parent 7bd5b22c
No related branches found
No related tags found
No related merge requests found
......@@ -578,7 +578,8 @@ let is_return_stmt kf stmt =
false
let is_entry_point kf =
String.equal (get_name kf) (Kernel.MainFunction.get ())
try equal kf (fst (Globals.entry_point ()))
with Globals.No_such_entry_point _ -> false
let is_main kf =
String.equal (get_name kf) "main"
......
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