[sledge] Add a todo for calls with inttoptr

Reviewed By: ngorogiannis

Differential Revision: D15965374

fbshipit-source-id: bbee029d7
master
Timotej Kapus 6 years ago committed by Facebook Github Bot
parent 33424c12ac
commit 6949a5ee68

@ -913,12 +913,13 @@ let xlate_instr :
let llfunc_valuekind = Llvm.classify_value maybe_llfunc in let llfunc_valuekind = Llvm.classify_value maybe_llfunc in
match llfunc_valuekind with match llfunc_valuekind with
| Function | Instruction _ | InlineAsm | Argument -> maybe_llfunc | Function | Instruction _ | InlineAsm | Argument -> maybe_llfunc
| ConstantExpr -> | ConstantExpr -> (
if Llvm.constexpr_opcode maybe_llfunc == BitCast then match Llvm.constexpr_opcode maybe_llfunc with
Llvm.operand maybe_llfunc 0 | BitCast -> Llvm.operand maybe_llfunc 0
else | IntToPtr -> todo "maybe handle calls with inttoptr" ()
| _ ->
fail "Unknown value in a call instruction %a" pp_llvalue fail "Unknown value in a call instruction %a" pp_llvalue
maybe_llfunc () maybe_llfunc () )
| _ -> | _ ->
fail "Unhandled operand type in a call instruction %a" fail "Unhandled operand type in a call instruction %a"
pp_llvaluekind llfunc_valuekind () pp_llvaluekind llfunc_valuekind ()

Loading…
Cancel
Save