diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-04 09:13:25 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-04 09:13:25 -0700 |
commit | 38e96056e47a68e45c229a5e2f788a72a8efe206 (patch) | |
tree | 5473a0bf17afea14c2e7d42263ef793a33b7c844 /053recipe_header.cc | |
parent | 1ec3eb4cd8fcdb44b93d551361b880f904c2616d (diff) | |
download | mu-38e96056e47a68e45c229a5e2f788a72a8efe206.tar.gz |
3437
Drop an ancient case of premature optimization: skipping transform for recipes without bodies. These days recipes also have headers that need transforming. Thanks Caleb Couch for running into this issue.
Diffstat (limited to '053recipe_header.cc')
-rw-r--r-- | 053recipe_header.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/053recipe_header.cc b/053recipe_header.cc index 44e7e8da..c521eb69 100644 --- a/053recipe_header.cc +++ b/053recipe_header.cc @@ -422,6 +422,7 @@ void fill_in_reply_ingredients(recipe_ordinal r) { add_header_products(inst, caller_recipe); } // fall through reply + if (caller_recipe.steps.empty()) return; // error will be raised elsewhere if there's a product in the header; just give up const instruction& final_instruction = caller_recipe.steps.at(SIZE(caller_recipe.steps)-1); if (final_instruction.name != "reply" && final_instruction.name != "return") { instruction inst; |