fix(runtime/object): embarrassing bug at del_core

This commit is contained in:
Leonardo de Moura 2019-02-25 17:41:02 -08:00
parent 3a252f5b55
commit 1f3de14f9c

View file

@ -189,7 +189,7 @@ static inline void free_parray_obj(object * o) {
FREE_OBJ(o, sizeof(parray_object) + sizeof(rc_type));
}
static void del_core(object * o, object * todo) {
static void del_core(object * o, object * & todo) {
lean_assert(is_heap_obj(o));
switch (get_kind(o)) {
case object_kind::Constructor: {