feat(library/blast/blast): automatically clear tmp_type_context at recycling time
This commit is contained in:
parent
3517a3dfa9
commit
43efc11f36
1 changed files with 2 additions and 0 deletions
|
@ -443,6 +443,8 @@ public:
|
|||
tmp_type_context * mk_tmp_type_context();
|
||||
|
||||
void recycle_tmp_type_context(tmp_type_context * ctx) {
|
||||
lean_assert(ctx);
|
||||
ctx->clear();
|
||||
m_tmp_ctx_pool.push_back(ctx);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue