Skip to content

Commit

Permalink
implement Ref{T} support in cfunction
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Mar 9, 2015
1 parent 67a845b commit dd34fa5
Show file tree
Hide file tree
Showing 6 changed files with 363 additions and 214 deletions.
2 changes: 1 addition & 1 deletion src/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ jl_lambda_info_t *jl_new_lambda_info(jl_value_t *ast, jl_tuple_t *sparams)
li->roots = NULL;
li->functionObject = NULL;
li->specFunctionObject = NULL;
li->cFunctionObject = NULL;
li->cFunctionList = NULL;
li->functionID = 0;
li->specFunctionID = 0;
li->specTypes = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/ccall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static Value *runtime_sym_lookup(PointerType *funcptype, char *f_lib, char *f_na

Value *llvm_type_rewrite(Value *v, Type *target_type, jl_value_t *ty, bool isret)
{
if(preferred_llvm_type(ty,isret) == NULL || target_type == NULL || target_type == v->getType())
if (preferred_llvm_type(ty,isret) == NULL || target_type == NULL || target_type == v->getType())
return v;

assert(!v->getType()->isPointerTy());
Expand Down
Loading

0 comments on commit dd34fa5

Please sign in to comment.