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

Loading…
Cancel
Save