Skip to content
Snippets Groups Projects
Commit dea55f7c authored by David Bühler's avatar David Bühler
Browse files

[obfuscator] Removes an unnecessary try… with.

parent 1b9e24de
No related branches found
No related tags found
No related merge requests found
...@@ -84,14 +84,13 @@ class visitor = object ...@@ -84,14 +84,13 @@ class visitor = object
if Varinfo.Hashtbl.mem varinfos_visited vi then if Varinfo.Hashtbl.mem varinfos_visited vi then
Cil.SkipChildren Cil.SkipChildren
else begin else begin
if Cil.isFunctionType vi.vtype then if Cil.isFunctionType vi.vtype then begin
try if vi.vname <> "main"
if vi.vname <> "main" && not (Cil.is_builtin vi)
&& not (Cil.is_builtin vi) && not (Cil.is_special_builtin vi.vname)
&& not (Cil.is_special_builtin vi.vname) && not (Cil.hasAttribute "fc_stdlib" vi.vattr) then
&& not (Cil.hasAttribute "fc_stdlib" vi.vattr) then vi.vname <- Dictionary.fresh Obfuscator_kind.Function vi.vname
vi.vname <- Dictionary.fresh Obfuscator_kind.Function vi.vname end
with Not_found -> assert false
else begin else begin
let add = let add =
if vi.vglob then Dictionary.fresh Obfuscator_kind.Global_var if vi.vglob then Dictionary.fresh Obfuscator_kind.Global_var
......
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