about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-12-05 23:33:15 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-12-05 23:33:15 -0800
commit3cdbcd460d70a69ece3cc49a791692681f6ff65a (patch)
tree7a610ec474e87c12e6028e026d9a972cc175c2c5
parent40b46420dc237b6d04141bb818521f61cd440591 (diff)
downloadmu-3cdbcd460d70a69ece3cc49a791692681f6ff65a.tar.gz
4142
-rw-r--r--056shape_shifting_recipe.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/056shape_shifting_recipe.cc b/056shape_shifting_recipe.cc
index 97f8b392..d36bb662 100644
--- a/056shape_shifting_recipe.cc
+++ b/056shape_shifting_recipe.cc
@@ -280,14 +280,12 @@ string insert_new_variant(recipe_ordinal exemplar, const instruction& inst, cons
   // record variant before performing transforms, just in case the recipe is recursive
   get(Recipe_variants, inst.name).push_back(new_recipe_ordinal);
   // perform all transforms on the new specialization
-  if (!new_recipe.steps.empty()) {
-    trace(9992, "transform") << "transforming new specialization: " << new_recipe.name << end();
-    for (int t = 0;  t < SIZE(Transform);  ++t) {
-      // one exception: skip tangle, which has already occurred above
-      if (Transform.at(t) == /*disambiguate overloading*/static_cast<transform_fn>(insert_fragments))
-        continue;
-      (*Transform.at(t))(new_recipe_ordinal);
-    }
+  trace(9992, "transform") << "transforming new specialization: " << new_recipe.name << end();
+  for (int t = 0;  t < SIZE(Transform);  ++t) {
+    // one exception: skip tangle, which has already occurred above
+    if (Transform.at(t) == /*disambiguate overloading*/static_cast<transform_fn>(insert_fragments))
+      continue;
+    (*Transform.at(t))(new_recipe_ordinal);
   }
   new_recipe.transformed_until = SIZE(Transform)-1;
   return new_recipe.name;