| 95 | } |
| 96 | |
| 97 | void Expr::Close() { |
| 98 | for (ScalarExpr* child : children_) child->Close(); |
| 99 | if (cache_entry_ != nullptr) { |
| 100 | LibCache::instance()->DecrementUseCount(cache_entry_); |
| 101 | cache_entry_ = nullptr; |
| 102 | } |
| 103 | #ifndef NDEBUG |
| 104 | closed_ = true; |
| 105 | #endif |
| 106 | } |
| 107 | |
| 108 | } |