about summary refs log tree commit diff stats
path: root/057static_dispatch.cc
diff options
context:
space:
mode:
Diffstat (limited to '057static_dispatch.cc')
-rw-r--r--057static_dispatch.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/057static_dispatch.cc b/057static_dispatch.cc
index 4e0cb76a..368804e7 100644
--- a/057static_dispatch.cc
+++ b/057static_dispatch.cc
@@ -160,6 +160,7 @@ void replace_best_variant(instruction& inst, const recipe& caller_recipe) {
   long long int best_score = variant_score(inst, get(Recipe_ordinal, inst.name));
   trace(9992, "transform") << "score for base: " << best_score << end();
   for (long long int i = 0; i < SIZE(variants); ++i) {
+    if (variants.at(i) == -1) continue;
 //?     trace(9992, "transform") << "checking variant " << i << ": " << variants.at(i) << end();
     long long int current_score = variant_score(inst, variants.at(i));
     trace(9992, "transform") << "score for variant " << i << ": " << current_score << end();