diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-04-27 09:07:53 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-04-27 09:07:53 -0700 |
commit | b8263692a6f2865482abbc21eae5a4e5163ab725 (patch) | |
tree | b1b938d4a83cf2b420001c9188194a5800d12eb2 /054static_dispatch.cc | |
parent | f6645643953eeb0a493d258759a4421505d13539 (diff) | |
download | mu-b8263692a6f2865482abbc21eae5a4e5163ab725.tar.gz |
3841
Use the real original instruction in error messages. Thanks Ella Couch.
Diffstat (limited to '054static_dispatch.cc')
-rw-r--r-- | 054static_dispatch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/054static_dispatch.cc b/054static_dispatch.cc index 00c9c645..a78411e9 100644 --- a/054static_dispatch.cc +++ b/054static_dispatch.cc @@ -215,9 +215,9 @@ string best_variant(instruction& inst, const recipe& caller_recipe) { const recipe& specializer_recipe = get(Recipe, p->running_recipe); const instruction& specializer_inst = specializer_recipe.steps.at(p->running_step_index); if (specializer_recipe.name != "interactive") - raise << " (from '" << to_original_string(specializer_inst) << "' in " << specializer_recipe.name << ")\n" << end(); + raise << " (from '" << specializer_inst.original_string << "' in " << specializer_recipe.name << ")\n" << end(); else - raise << " (from '" << to_original_string(specializer_inst) << "')\n" << end(); + raise << " (from '" << specializer_inst.original_string << "')\n" << end(); // One special-case to help with the rewrite_stash transform. (cross-layer) if (specializer_inst.products.at(0).name.find("stash_") == 0) { instruction stash_inst; |