diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-03-12 19:24:38 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-03-12 19:24:38 -0800 |
commit | 12f99381c2323841c63a4ea7709bfdb5ed8e0447 (patch) | |
tree | 9a32700729c6f553ff524571eeac74bd000d69e1 /043space.cc | |
parent | fc5951534a6808b7a5064d289b98443c1d0e4800 (diff) | |
download | mu-12f99381c2323841c63a4ea7709bfdb5ed8e0447.tar.gz |
2764
Diffstat (limited to '043space.cc')
-rw-r--r-- | 043space.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/043space.cc b/043space.cc index c9a0e7dc..9ccb287c 100644 --- a/043space.cc +++ b/043space.cc @@ -227,8 +227,9 @@ if (curr.name == "local-scope") { void try_reclaim_locals() { // only reclaim routines starting with 'local-scope' const recipe_ordinal r = get(Recipe_ordinal, current_recipe_name()); - if (get(Recipe, r).steps.empty()) return; - const instruction& inst = get(Recipe, r).steps.at(0); + const recipe& exiting_recipe = get(Recipe, r); + if (exiting_recipe.steps.empty()) return; + const instruction& inst = exiting_recipe.steps.at(0); if (inst.old_name != "local-scope") return; abandon(current_call().default_space, /*refcount*/1 + /*array length*/1 + /*number-of-locals*/Name[r][""]); |