From 035f313e45c2768bf1fde247247bd4f64596c7e9 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Wed, 15 Feb 2017 23:43:42 -0500 Subject: [PATCH] fix over-pessimistic emit_isa for Type --- src/cgutils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cgutils.cpp b/src/cgutils.cpp index a607a4f9d50a7..f50e50394e9c3 100644 --- a/src/cgutils.cpp +++ b/src/cgutils.cpp @@ -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