Skip to content

Commit

Permalink
Merge pull request #12418 from JuliaLang/adr/llvmcallswap
Browse files Browse the repository at this point in the history
Fix error messages for llvmcall and document some parameters for julia_to_native.
  • Loading branch information
vtjnash committed Jul 31, 2015
2 parents f0328c8 + 96a2a85 commit db8b4ee
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ccall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,11 @@ Value *llvm_type_rewrite(Value *v, Type *from_type, Type *target_type, bool toju

// --- argument passing and scratch space utilities ---

// Emit code to convert argument to form expected by C ABI
// ty = desired LLVM type
// jt = Julia type of formal argument
// jv = value of actual argument
// aty = Julia inferred type of actual argument
static Value *julia_to_native(Type *ty, jl_value_t *jt, Value *jv,
jl_value_t *aty, bool addressOf,
bool byRef, bool inReg,
Expand Down Expand Up @@ -633,7 +638,7 @@ static Value *emit_llvmcall(jl_value_t **args, size_t nargs, jl_codectx_t *ctx)
jl_svec_len(ctx->sp)/2);
}
JL_CATCH {
jl_rethrow_with_add("error interpreting llvmcall return type");
jl_rethrow_with_add("error interpreting llvmcall argument tuple");
}
}
{
Expand All @@ -643,7 +648,7 @@ static Value *emit_llvmcall(jl_value_t **args, size_t nargs, jl_codectx_t *ctx)
jl_svec_len(ctx->sp)/2);
}
JL_CATCH {
jl_rethrow_with_add("error interpreting llvmcall argument tuple");
jl_rethrow_with_add("error interpreting llvmcall return type");
}
}
{
Expand Down

0 comments on commit db8b4ee

Please sign in to comment.