Skip to content

Commit

Permalink
Comment out an assertion and add a test case that triggers it
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno authored and vtjnash committed Sep 14, 2015
1 parent 0f8c8f7 commit bf43f2d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3247,7 +3247,7 @@ static jl_cgval_t emit_expr(jl_value_t *expr, jl_codectx_t *ctx, bool isboxed, b
if (!valuepos) return jl_cgval_t(); // value not used, no point in doing codegen for it
ssize_t idx = ((jl_gensym_t*)expr)->id;
assert(idx >= 0);
assert(ctx->gensym_assigned.at(idx));
//assert(ctx->gensym_assigned.at(idx));
jl_cgval_t val = ctx->gensym_SAvalues.at(idx); // at this point, gensym_SAvalues[idx] actually contains the SAvalue
return val;
}
Expand Down
10 changes: 10 additions & 0 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3347,3 +3347,13 @@ foo12967(x, ::TupleType12967) = 2

# issue #13083
@test Void() === nothing

# issue discovered in #11973
for j = 1:1
x = try
error()
2
catch
continue
end
end

0 comments on commit bf43f2d

Please sign in to comment.