diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-19 10:29:55 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-12-15 10:20:41 -0800 |
commit | 76b598971bd8a0232a6f275e45ca421cba22ea2a (patch) | |
tree | 2cf4370df35685a9a15840b4b59f5feb5b37c38c /030container.cc | |
parent | 82177734ca98cfc67afe5d87be4edd3f86546231 (diff) | |
download | mu-76b598971bd8a0232a6f275e45ca421cba22ea2a.tar.gz |
bugfix: phase ordering
Diffstat (limited to '030container.cc')
-rw-r--r-- | 030container.cc | 10 |
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) { |