Resetting the builder arena. May be a bug or two here still.

This commit is contained in:
Ben Vanik
2013-12-29 23:43:36 -08:00
parent 63f11732a5
commit cd9172ed62
5 changed files with 32 additions and 1 deletions

View File

@@ -69,9 +69,12 @@ int IVMAssembler::Assemble(
ctx.scratch_arena = &scratch_arena_;
ctx.label_ref_head = NULL;
// Reset label tags as we use them.
builder->ResetLabelTags();
// Function prologue.
Block* block = builder->first_block();
auto block = builder->first_block();
while (block) {
Label* label = block->label_head;
while (label) {