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
if Varinfo.Hashtbl.mem varinfos_visited vi then
Cil.SkipChildren
else begin
if Cil.isFunctionType vi.vtype then
try
if vi.vname <> "main"
&& not (Cil.is_builtin vi)
&& not (Cil.is_special_builtin vi.vname)
&& not (Cil.hasAttribute "fc_stdlib" vi.vattr) then
vi.vname <- Dictionary.fresh Obfuscator_kind.Function vi.vname
with Not_found -> assert false
if Cil.isFunctionType vi.vtype then begin
if vi.vname <> "main"
&& not (Cil.is_builtin vi)
&& not (Cil.is_special_builtin vi.vname)
&& not (Cil.hasAttribute "fc_stdlib" vi.vattr) then
vi.vname <- Dictionary.fresh Obfuscator_kind.Function vi.vname
end
else begin
let add =
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