diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-27 18:05:11 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-27 18:05:11 -0800 |
commit | 0ddcab7bc0e856dfe5e0556e972f3c21fd16d6d1 (patch) | |
tree | 6e19bc74bc938a9c37ab8ad8991f193cff30c56e | |
parent | e8ed8c612516fabc6fd34c358383cf5c6b060e3f (diff) | |
download | mu-0ddcab7bc0e856dfe5e0556e972f3c21fd16d6d1.tar.gz |
2481
-rw-r--r-- | 057static_dispatch.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/057static_dispatch.cc b/057static_dispatch.cc index 0bc776ea..f38b813d 100644 --- a/057static_dispatch.cc +++ b/057static_dispatch.cc @@ -119,8 +119,7 @@ void resolve_ambiguous_calls(recipe_ordinal r) { for (long long int index = 0; index < SIZE(caller_recipe.steps); ++index) { instruction& inst = caller_recipe.steps.at(index); if (inst.is_label) continue; - if (!contains_key(Recipe_variants, inst.name)) continue; - if (get(Recipe_variants, inst.name).empty()) continue; + if (get_or_insert(Recipe_variants, inst.name).empty()) continue; replace_best_variant(inst, caller_recipe); } } |