feat(library/blast/blast): automatically clear tmp_type_context at recycling time

This commit is contained in:
Leonardo de Moura 2015-11-04 15:46:56 -08:00
parent 3517a3dfa9
commit 43efc11f36

View file

@ -443,6 +443,8 @@ public:
tmp_type_context * mk_tmp_type_context(); tmp_type_context * mk_tmp_type_context();
void recycle_tmp_type_context(tmp_type_context * ctx) { void recycle_tmp_type_context(tmp_type_context * ctx) {
lean_assert(ctx);
ctx->clear();
m_tmp_ctx_pool.push_back(ctx); m_tmp_ctx_pool.push_back(ctx);
} }
}; };