about summary refs log tree commit diff stats
path: root/018type_abbreviations.cc
diff options
context:
space:
mode:
Diffstat (limited to '018type_abbreviations.cc')
-rw-r--r--018type_abbreviations.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/018type_abbreviations.cc b/018type_abbreviations.cc
index f7fd0592..1f33a5a6 100644
--- a/018type_abbreviations.cc
+++ b/018type_abbreviations.cc
@@ -164,7 +164,10 @@ Transform.push_back(expand_type_abbreviations);  // idempotent
 
 :(code)
 void expand_type_abbreviations(const recipe_ordinal r) {
-  const recipe& caller = get(Recipe, r);
+  expand_type_abbreviations(get(Recipe, r));
+}
+
+void expand_type_abbreviations(const recipe& caller) {
   trace(9991, "transform") << "--- expand type abbreviations in recipe '" << caller.name << "'" << end();
   for (int i = 0; i < SIZE(caller.steps); ++i) {
     const instruction& inst = caller.steps.at(i);