about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-04 23:44:46 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-04 23:44:46 -0800
commit436b2b2eac33b893f7b9b0a7229ac1d98c034d2c (patch)
tree6619f453b5fd99b204380b17b94e9d8321e642f1 /030container.cc
parent54275c64e2404612bf8754238bf71ae805f4022e (diff)
downloadmu-436b2b2eac33b893f7b9b0a7229ac1d98c034d2c.tar.gz
2360
More flailing around trying to come up with the right phase ordering.
I've tried to narrow down each transform's constraints wrt transforms in
previous layers.

One issue that keeps biting me is the Type map containing empty records
because of stray [] operations. That's gotta be important.
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/030container.cc b/030container.cc
index 05b3a6e9..72acd48d 100644
--- a/030container.cc
+++ b/030container.cc
@@ -190,6 +190,7 @@ case GET: {
 const reagent element_type(const reagent& canonized_base, long long int offset_value) {
   assert(offset_value >= 0);
   assert(Type.find(canonized_base.type->value) != Type.end());
+  assert(!Type[canonized_base.type->value].name.empty());
   const type_info& info = Type[canonized_base.type->value];
   assert(info.kind == CONTAINER);
   reagent element;
@@ -563,6 +564,7 @@ check_container_field_types();
 void check_container_field_types() {
   for (map<type_ordinal, type_info>::iterator p = Type.begin(); p != Type.end(); ++p) {
     const type_info& info = p->second;
+    // Check Container Field Types(info)
     for (long long int i = 0; i < SIZE(info.elements); ++i) {
       check_invalid_types(info.elements.at(i), maybe(info.name), info.element_names.at(i));
     }