[sledge] Relax call instruction arguments

Summary:
Previous change to allow bitcasts in call instructions was too strict
and did not allow for indirect calls.

Reviewed By: jberdine

Differential Revision: D15803262

fbshipit-source-id: 40d828b59
master
Timotej Kapus 6 years ago committed by Facebook Github Bot
parent 551a03c4c9
commit 46f5667823

@ -912,7 +912,7 @@ let xlate_instr :
in
let llfunc_valuekind = Llvm.classify_value maybe_llfunc in
match llfunc_valuekind with
| Function -> maybe_llfunc
| Function | Instruction _ | InlineAsm | Argument -> maybe_llfunc
| ConstantExpr ->
if Llvm.constexpr_opcode maybe_llfunc == BitCast then
Llvm.operand maybe_llfunc 0

Loading…
Cancel
Save