about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-06-29 20:55:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-06-29 20:55:29 -0700
commit1c13f428001ab3f9f75331de09c998dacf00537b (patch)
tree39131d4ee5e66a2bd3079f1814d70a2fab2b4408
parenta41f84c5c924eb66996951aab4ead5a8f9feb3eb (diff)
downloadmu-1c13f428001ab3f9f75331de09c998dacf00537b.tar.gz
3080
-rw-r--r--073deep_copy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/073deep_copy.cc b/073deep_copy.cc
index 57524cfe..99b68da0 100644
--- a/073deep_copy.cc
+++ b/073deep_copy.cc
@@ -130,6 +130,7 @@ int deep_copy_address(const reagent& canonized_in, map<int, int>& addresses_copi
   reagent/*copy*/ payload = canonized_in;
   payload.properties.push_back(pair<string, string_tree*>("lookup", NULL));
   int out = allocate(size_of(payload));
+  put(addresses_copied, in_address, out);
   reagent/*copy*/ payload_type = payload;
   canonize_type(payload_type);
   const type_info& info = get(Type, payload_type.type->value);
@@ -153,7 +154,6 @@ int deep_copy_address(const reagent& canonized_in, map<int, int>& addresses_copi
     case EXCLUSIVE_CONTAINER:
       break;
   }
-  put(addresses_copied, in_address, out);
   return out;
 }