Skip to content

Commit c0b77de

Browse files
committed
fix over-pessimistic emit_isa for Type
1 parent 592e996 commit c0b77de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cgutils.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -956,8 +956,7 @@ static Value *emit_isa(const jl_cgval_t &x, jl_value_t *type, const std::string
956956
return ConstantInt::get(T_int1, maybe_isa);
957957

958958
// intersection with Type needs to be handled specially
959-
if (jl_has_intersect_type_not_kind(x.typ) ||
960-
jl_has_intersect_type_not_kind(type)) {
959+
if (jl_has_intersect_type_not_kind(type)) {
961960
Value *vx = boxed(x, ctx);
962961
if (msg && *msg == "typeassert") {
963962
#if JL_LLVM_VERSION >= 30700

0 commit comments

Comments
 (0)