about summary refs log tree commit diff stats
path: root/059shape_shifting_recipe.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-11 18:12:57 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-11 18:12:57 -0800
commit8aa4b664331fff5d71f74cf6de77247f785135a2 (patch)
tree81f743df8e9ec6f1fb3ef60c18b8cc1457e89d47 /059shape_shifting_recipe.cc
parent712b442fab487fcb8064f4744ff974c024109380 (diff)
downloadmu-8aa4b664331fff5d71f74cf6de77247f785135a2.tar.gz
2649
More tweaks to the trace after all my debugging.
Diffstat (limited to '059shape_shifting_recipe.cc')
-rw-r--r--059shape_shifting_recipe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/059shape_shifting_recipe.cc b/059shape_shifting_recipe.cc
index ed6d66b7..5bb1126d 100644
--- a/059shape_shifting_recipe.cc
+++ b/059shape_shifting_recipe.cc
@@ -264,7 +264,6 @@ bool is_type_ingredient_name(const string& type) {
 
 recipe_ordinal new_variant(recipe_ordinal exemplar, const instruction& inst, const recipe& caller_recipe) {
   string new_name = next_unused_recipe_name(inst.name);
-  trace(9993, "transform") << "switching " << inst.name << " to specialized " << new_name << end();
   assert(!contains_key(Recipe_ordinal, new_name));
   recipe_ordinal new_recipe_ordinal = put(Recipe_ordinal, new_name, Next_recipe_ordinal++);
   // make a copy
@@ -275,6 +274,7 @@ recipe_ordinal new_variant(recipe_ordinal exemplar, const instruction& inst, con
   put(Recipe, new_recipe_ordinal, get(Recipe, exemplar));
   recipe& new_recipe = get(Recipe, new_recipe_ordinal);
   new_recipe.name = new_name;
+  trace(9993, "transform") << "switching " << inst.name << " to specialized " << header_label(new_recipe_ordinal) << end();
   // Since the exemplar never ran any transforms, we have to redo some of the
   // work of the check_types_by_name transform while supporting type-ingredients.
   compute_type_names(new_recipe);