Skip to content

Commit

Permalink
fix codegen bug in static_void_instance on Type{()}
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed May 9, 2014
1 parent 44d24c4 commit 5a3005d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,9 @@ static Value *allocate_box_dynamic(Value *jlty, Value *nb, Value *v)

static jl_value_t *static_void_instance(jl_value_t *jt)
{
if (jl_is_type_type(jt) && jl_tparam0(jt) == (jl_value_t*)jl_null) {
return (jl_value_t*)jl_null;
}
if (jl_is_datatype(jt)) {
jl_datatype_t *jb = (jl_datatype_t*)jt;
if (jb->instance == NULL)
Expand Down

0 comments on commit 5a3005d

Please sign in to comment.