diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-11-08 11:46:04 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-11-08 11:52:37 -0800 |
commit | b55b15a920a3f367688579d946a83deb13855df8 (patch) | |
tree | 3e449a9732d9e2fbdb4d3703398419298263c428 /042name.cc | |
parent | 4ecab1821ed7609d35f2c9509cb045dc79606e8c (diff) | |
download | mu-b55b15a920a3f367688579d946a83deb13855df8.tar.gz |
3654
Follow-up to commit 3321: move get_base_type() more thoroughly to layer 55. The notion of a base_type doesn't really make sense before we introduce type ingredients and shape-shifting containers, and it simplifies early layers a *lot* even including the cost of that *ugly* preamble in layer 55 to retrofit all the places.
Diffstat (limited to '042name.cc')
-rw-r--r-- | 042name.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/042name.cc b/042name.cc index 6b6d2a74..1fc2f201 100644 --- a/042name.cc +++ b/042name.cc @@ -121,7 +121,9 @@ type_ordinal skip_addresses(type_tree* type) { while (type && is_compound_type_starting_with(type, "address")) type = type->right; if (!type) return -1; // error handled elsewhere - return root_type(type)->value; + const type_tree* base_type = type; + // Update base_type in skip_addresses + return base_type->value; } int find_element_name(const type_ordinal t, const string& name, const string& recipe_name) { |