forked from OSchip/llvm-project
parent
595683da00
commit
3baf5b390d
|
@ -65,6 +65,7 @@ class DenseSlabAlloc {
|
|||
}
|
||||
|
||||
void Free(Cache *c, IndexT idx) {
|
||||
DCHECK_NE(idx, 0);
|
||||
if (c->pos == Cache::kSize)
|
||||
Drain(c);
|
||||
c->cache[c->pos++] = idx;
|
||||
|
|
Loading…
Reference in New Issue