Skip to content

Commit

Permalink
fix over-pessimistic emit_isa for Type
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Feb 16, 2017
1 parent 08446b9 commit 035f313
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,7 @@ static Value *emit_isa(const jl_cgval_t &x, jl_value_t *type, const std::string
return ConstantInt::get(T_int1, maybe_isa);

// intersection with Type needs to be handled specially
if (jl_has_intersect_type_not_kind(x.typ) ||
jl_has_intersect_type_not_kind(type)) {
if (jl_has_intersect_type_not_kind(type)) {
Value *vx = boxed(x, ctx);
if (msg && *msg == "typeassert") {
#if JL_LLVM_VERSION >= 30700
Expand Down

0 comments on commit 035f313

Please sign in to comment.