Stop allocating Actions on the Arena (#934)

This enables us to manage local variables in Carbon using C++ RAII.

Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com>
This commit is contained in:
Geoff RomerandJon Meow authored and GitHub committed 2021-11-10 16:35:06 -08:00
1 parent cabba3e93e
commit a4aff26821
9 files changed
+354 -255

No files matched your search

+2 -1
View File
@@ -46,7 +46,8 @@ void Heap::Deallocate(AllocationId allocation) {
if (alive_[allocation.index_]) {
alive_[allocation.index_] = false;
} else {
FATAL_RUNTIME_ERROR_NO_LINE() << "deallocating an already dead value";
FATAL_RUNTIME_ERROR_NO_LINE() << "deallocating an already dead value: "
<< *values_[allocation.index_];
}
}