diff options
Diffstat (limited to 'src/boot/me/semant.ml')
| -rw-r--r-- | src/boot/me/semant.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/boot/me/semant.ml b/src/boot/me/semant.ml index e70fd55f..1e6c462c 100644 --- a/src/boot/me/semant.ml +++ b/src/boot/me/semant.ml @@ -1951,7 +1951,7 @@ let call_args_referent_type Il.ScalarTy (Il.AddrTy Il.OpaqueTy) |] in - match callee_ty with + match simplified_ty callee_ty with Ast.TY_fn (tsig, taux) -> call_args_referent_type_full cx.ctxt_abi @@ -1961,7 +1961,9 @@ let call_args_referent_type (if taux.Ast.fn_is_iter then (iterator_arg_rtys()) else [||]) indirect_arg_rtys - | _ -> bug cx "Semant.call_args_referent_type on non-callable type" + | _ -> bug cx + "Semant.call_args_referent_type on non-callable type %a" + Ast.sprintf_ty callee_ty ;; let indirect_call_args_referent_type |