about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-06-11 08:43:31 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-06-11 08:43:31 -0700
commitbba04e2e22eaa4c41096c65add9d540adf1e530c (patch)
tree4f03b30d7ae4638e739308be0b06aba4642aa527
parentb56064194e6fdd1e6a27d3ca6f39aec1378f84bc (diff)
downloadmu-bba04e2e22eaa4c41096c65add9d540adf1e530c.tar.gz
3044
-rw-r--r--036refcount.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/036refcount.cc b/036refcount.cc
index aea51b6f..bd5dccfd 100644
--- a/036refcount.cc
+++ b/036refcount.cc
@@ -313,6 +313,7 @@ void append_addresses(int base_offset, const type_tree* type, vector<address_ele
 
 int payload_size(const type_tree* type) {
   assert(type->name == "address");
+  assert(type->right->name != "array");
   return size_of(type->right) + /*refcount*/1;
 }
 
17' href='#n117'>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 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240