about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/030container.cc b/030container.cc
index b470e8ad..f37d7283 100644
--- a/030container.cc
+++ b/030container.cc
@@ -534,17 +534,19 @@ Transform.push_back(check_or_set_invalid_types);  // idempotent
 
 :(code)
 void check_or_set_invalid_types(const recipe_ordinal r) {
-  for (long long int index = 0; index < SIZE(get(Recipe, r).steps); ++index) {
-    const instruction& inst = get(Recipe, r).steps.at(index);
+  recipe& caller = get(Recipe, r);
+  for (long long int index = 0; index < SIZE(caller.steps); ++index) {
+    instruction& inst = caller.steps.at(index);
     for (long long int i = 0; i < SIZE(inst.ingredients); ++i) {
       check_or_set_invalid_types(inst.ingredients.at(i).type, inst.ingredients.at(i).properties.at(0).second,
-                                 maybe(get(Recipe, r).name), "'"+inst.to_string()+"'");
+                                 maybe(caller.name), "'"+inst.to_string()+"'");
     }
     for (long long int i = 0; i < SIZE(inst.products); ++i) {
       check_or_set_invalid_types(inst.products.at(i).type, inst.products.at(i).properties.at(0).second,
-                                 maybe(get(Recipe, r).name), "'"+inst.to_string()+"'");
+                                 maybe(caller.name), "'"+inst.to_string()+"'");
     }
   }
+  // End check_or_set_invalid_types
 }
 
 void check_or_set_invalid_types(type_tree* type, const string_tree* type_name, const string& block, const string& name) {