Merge UnwindTo and UnwindPast logic (#926)

Also shifts the DeallocateScope concept into UnwindTodoTop since that's how it's used.
This commit is contained in:
Jon Meow
2021-11-08 09:22:38 -08:00
committed by GitHub
parent b990bab452
commit 73eea8e47a
2 changed files with 34 additions and 40 deletions
@@ -137,7 +137,7 @@ class Interpreter {
auto GetFromEnv(SourceLocation source_loc, const std::string& name)
-> Address;
void DeallocateScope(Scope& scope);
auto UnwindTodoTop() -> Nonnull<Action*>;
auto CreateTuple(Nonnull<Action*> act, Nonnull<const Expression*> exp)
-> Nonnull<const Value*>;