diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index ce3cad403..ac7ce156d 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -1371,11 +1371,6 @@ void ast_manager::update_fresh_id(ast_manager const& m) { m_fresh_id = std::max(m_fresh_id, m.m_fresh_id); } -void ast_manager::inc_ref(ast * n) { - if (n) { - n->inc_ref(); - } -} void ast_manager::init() { m_int_real_coercions = true; diff --git a/src/ast/ast.h b/src/ast/ast.h index c4efe4ad3..aa8669def 100644 --- a/src/ast/ast.h +++ b/src/ast/ast.h @@ -1622,7 +1622,11 @@ public: void debug_ref_count() { m_debug_ref_count = true; } - void inc_ref(ast * n); + void inc_ref(ast * n) { + if (n) { + n->inc_ref(); + } + } void dec_ref(ast* n) { if (n) {