about summary refs log tree commit diff stats
path: root/052tangle.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-20 20:05:52 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-20 20:17:07 -0800
commit65c905fe84c0e8b7acd6839469d7bb9727f0632b (patch)
treeb9af97e9191b82675713cda3874677ee81b3bc9b /052tangle.cc
parent343bc5359b93d4b589544671804f11d42f67d694 (diff)
downloadmu-65c905fe84c0e8b7acd6839469d7bb9727f0632b.tar.gz
2678
Start using type names from the type tree rather than the property tree
in most places. Hopefully the only occurrences of
'properties.at(0).second' left are ones where we're managing it. Next we
can stop writing to it.
Diffstat (limited to '052tangle.cc')
-rw-r--r--052tangle.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/052tangle.cc b/052tangle.cc
index 8dd4bc64..94a0bd35 100644
--- a/052tangle.cc
+++ b/052tangle.cc
@@ -121,7 +121,7 @@ void append_fragment(vector<instruction>& base, const vector<instruction>& patch
     for (long long int j = 0; j < SIZE(inst.ingredients); ++j) {
       reagent& x = inst.ingredients.at(j);
       if (!is_literal(x)) continue;
-      if (x.properties.at(0).second->value == "label" && contains_key(jump_targets, x.name))
+      if (x.type->name == "label" && contains_key(jump_targets, x.name))
         x.name = prefix+x.name;
     }
     base.push_back(inst);