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;
 }