about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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;
 }
 
id='n105' href='#n105'>105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152