Skip to content

Commit

Permalink
fix a codegen assertion related to #11658
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jun 17, 2015
1 parent dbe94d1 commit 9df7bca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2888,7 +2888,7 @@ static Value *emit_checked_var(Value *bp, jl_sym_t *name, jl_codectx_t *ctx, boo

static Value *ghostValue(jl_value_t *ty)
{
assert(jl_is_datatype(ty));
assert(ty == (jl_value_t*)jl_bottom_type || jl_is_datatype(ty));
return mark_julia_type(UndefValue::get(NoopType),ty);
}

Expand Down Expand Up @@ -5008,8 +5008,7 @@ static void init_julia_llvm_env(Module *m)
T_pfloat64 = PointerType::get(T_float64, 0);
T_void = Type::getVoidTy(jl_LLVMContext);

// This type is used to create undef Values which carry
// metadata.
// This type is used to create undef Values which carry metadata.
NoopType = ArrayType::get(T_int1,0);

// add needed base definitions to our LLVM environment
Expand Down

1 comment on commit 9df7bca

@Keno
Copy link
Member

@Keno Keno commented on 9df7bca Jun 17, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a test?

Please sign in to comment.