about summary refs log tree commit diff stats
path: root/043space.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-02-07 00:25:27 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-02-07 00:25:27 -0800
commit85553e522cfd8cf6ecb9f8c6819bff044197502b (patch)
treeeae7c3e9ac3cffed4b6c7967f721768f64c151f6 /043space.cc
parent598f1b5362eb799e40836ceeb5452c9ba937fd6c (diff)
downloadmu-85553e522cfd8cf6ecb9f8c6819bff044197502b.tar.gz
3747
Diffstat (limited to '043space.cc')
-rw-r--r--043space.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/043space.cc b/043space.cc
index 33c4bb09..879561ee 100644
--- a/043space.cc
+++ b/043space.cc
@@ -235,7 +235,7 @@ void try_reclaim_locals() {
   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;
+  if (inst.name_before_rewrite != "local-scope") return;
   // reclaim any local variables unless they're being returned
   vector<double> zeros;
   for (int i = /*leave default space for last*/1;  i < SIZE(exiting_recipe.steps);  ++i) {
@@ -261,11 +261,11 @@ void try_reclaim_locals() {
 //: Reclaiming local variables above requires remembering what name an
 //: instruction had before any rewrites or transforms.
 :(before "End instruction Fields")
-string old_name;
+string name_before_rewrite;
 :(before "End instruction Clear")
-old_name.clear();
+name_before_rewrite.clear();
 :(before "End next_instruction(curr)")
-curr->old_name = curr->name;  // before rewrite rules modify it
+curr->name_before_rewrite = curr->name;
 
 :(code)
 // is this reagent one of the values returned by the current (return) instruction?
@@ -298,7 +298,7 @@ bool should_update_refcounts_in_write_memory() {
   if (!contains_key(Recipe, inst.operation)) return true;
   const recipe& callee = get(Recipe, inst.operation);
   if (callee.steps.empty()) return true;
-  return callee.steps.at(0).old_name != "local-scope";  // callees that call local-scope are already dealt with before return
+  return callee.steps.at(0).name_before_rewrite != "local-scope";  // callees that call local-scope are already dealt with before return
 }
 
 bool caller_uses_product(int product_index) {