fix(library/compiler/llnf): include closures at is_unboxed

This commit is contained in:
Leonardo de Moura 2019-02-03 10:00:51 -08:00
parent 3cf5241208
commit 65e7e785ff

View file

@ -957,7 +957,7 @@ static name mk_boxed_name(name const & fn) {
}
static bool is_unboxed(expr const & type) {
return type != mk_enf_object_type() && type != mk_enf_neutral_type();
return type != mk_enf_object_type() && type != mk_enf_neutral_type() && !is_pi(type);
}
static bool has_unboxed(expr const & type) {