diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-01 19:42:49 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-01 19:42:49 -0800 |
commit | 49c274f839e8768d50f6aca42c429081794182c6 (patch) | |
tree | 588d61a684f5eefcae38be936ab2db73c6eee688 /057static_dispatch.cc | |
parent | a09697d0acadb7297415c49cb2abcc763eafb3f9 (diff) | |
download | mu-49c274f839e8768d50f6aca42c429081794182c6.tar.gz |
2342 - generalize generic recipes
Support for type ingredients anywhere. I've been working on this since commit 2331.
Diffstat (limited to '057static_dispatch.cc')
-rw-r--r-- | 057static_dispatch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/057static_dispatch.cc b/057static_dispatch.cc index 6a86beba..35a703bf 100644 --- a/057static_dispatch.cc +++ b/057static_dispatch.cc @@ -108,12 +108,12 @@ void resolve_ambiguous_calls(recipe_ordinal r) { if (inst.is_label) continue; if (Recipe_variants.find(inst.name) == Recipe_variants.end()) continue; assert(!Recipe_variants[inst.name].empty()); - if (++Recipe_variants[inst.name].begin() == Recipe_variants[inst.name].end()) continue; replace_best_variant(inst); } } void replace_best_variant(instruction& inst) { + trace(9992, "transform") << "instruction " << inst.name << end(); vector<recipe_ordinal>& variants = Recipe_variants[inst.name]; long long int best_score = variant_score(inst, Recipe_ordinal[inst.name]); for (long long int i = 0; i < SIZE(variants); ++i) { |