[sledge] Fix unintended quoting of symbol names

Summary:
Adding quotes is needed only to avoid clashes between LLVM integer
literals and anonmous value names.

Reviewed By: ngorogiannis

Differential Revision: D24630527

fbshipit-source-id: 97339740c
master
Josh Berdine 4 years ago committed by Facebook GitHub Bot
parent 7a9fe91846
commit 51a16621aa

@ -148,10 +148,10 @@ open struct
Int.to_string name
| name -> (
match Int.of_string name with
| _ ->
| Some _ ->
(* escape to avoid clash with names of anonymous values *)
String.concat ~sep:"" ["\""; name; "\""]
| exception _ -> name ) )
"\"" ^ name ^ "\""
| None -> name ) )
in
SymTbl.set sym_tbl ~key:llv ~data:(name, loc)
end

Loading…
Cancel
Save