[sledge] Improve error message when calling null as a function

Reviewed By: mbouaziz

Differential Revision: D15098811

fbshipit-source-id: f2e16ac40
master
Josh Berdine 6 years ago committed by Facebook Github Bot
parent 44076e00ff
commit d3f33d0b43

@ -853,6 +853,7 @@ let rec xlate_func_name x llv =
| GlobalAlias -> xlate_func_name x (Llvm.operand llv 0)
| GlobalIFunc -> todo "ifunc: %a" pp_llvalue llv ()
| InlineAsm -> todo "inline asm: %a" pp_llvalue llv ()
| ConstantPointerNull -> todo "call null: %a" pp_llvalue llv ()
| _ -> fail "unknown function: %a" pp_llvalue llv ()
let ignored_callees = Hash_set.create (module String)

Loading…
Cancel
Save