about summary refs log tree commit diff stats
path: root/059generic_recipe.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-05 00:12:18 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-05 00:12:18 -0800
commit2d1e7d55cbcead8dfd861fa29c094fac11acb873 (patch)
tree1fd35e361d771de4f42f90bd5504852adf40053c /059generic_recipe.cc
parent9cfd925aa408d32197cfba6ef870f3f45cc6309a (diff)
downloadmu-2d1e7d55cbcead8dfd861fa29c094fac11acb873.tar.gz
2363 - duplex-list is now generic.
It wasn't a phase-ordering issue after all..
Diffstat (limited to '059generic_recipe.cc')
-rw-r--r--059generic_recipe.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/059generic_recipe.cc b/059generic_recipe.cc
index 72521285..4881c4b4 100644
--- a/059generic_recipe.cc
+++ b/059generic_recipe.cc
@@ -38,6 +38,12 @@ if (best_score == -1) {
   }
 }
 
+//: Don't bother resolving ambiguous calls inside generic recipes. Just do
+//: their specializations.
+
+:(after "void resolve_ambiguous_calls")
+if (any_type_ingredient_in_header(r)) return;
+
 :(code)
 recipe_ordinal pick_matching_generic_variant(vector<recipe_ordinal>& variants, const instruction& inst, long long int& best_score) {
   recipe_ordinal result = 0;