From ef9168a6f8a7eb016519649e0dd2cf49f8a81648 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Mon, 23 Apr 2018 22:56:14 -0400 Subject: [PATCH] fix a use of `isbitstype` in new optimizer (#26887) --- base/compiler/ssair/passes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/compiler/ssair/passes.jl b/base/compiler/ssair/passes.jl index cd6d419cf73c5..9b52666db36da 100644 --- a/base/compiler/ssair/passes.jl +++ b/base/compiler/ssair/passes.jl @@ -189,7 +189,7 @@ is_tuple_call(ir, def) = isa(def, Expr) && is_known_call(def, tuple, ir, ir.mod) function process_immutable_preserve(new_preserves::Vector{Any}, compact::IncrementalCompact, def::Expr) for arg in (isexpr(def, :new) ? def.args : def.args[2:end]) - if !isbitstype(compact_exprtype(compact, arg)) + if !isbitstype(widenconst(compact_exprtype(compact, arg))) push!(new_preserves, arg) end end