about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-12-03 23:51:42 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-12-03 23:51:42 -0800
commit9a20f9e32252357e4a445b2eb98bb5d8725f2157 (patch)
tree168a01e8883f6cc12b939a01d73a6624c9c688e6
parent4a48bedcd1d708a43d43dc6259a4e45c52ea3d00 (diff)
downloadmu-9a20f9e32252357e4a445b2eb98bb5d8725f2157.tar.gz
4135
-rw-r--r--054static_dispatch.cc2
-rw-r--r--html/054static_dispatch.cc.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/054static_dispatch.cc b/054static_dispatch.cc
index 8a026d90..0c0deffe 100644
--- a/054static_dispatch.cc
+++ b/054static_dispatch.cc
@@ -179,7 +179,7 @@ void resolve_ambiguous_calls(const recipe_ordinal r) {
   }
 }
 
-string best_variant(instruction& inst, const recipe& caller_recipe) {
+string best_variant(const instruction& inst, const recipe& caller_recipe) {
   const vector<recipe_ordinal>& variants = get(Recipe_variants, inst.name);
   vector<recipe_ordinal> candidates;
 
diff --git a/html/054static_dispatch.cc.html b/html/054static_dispatch.cc.html
index 42003df2..80cceda0 100644
--- a/html/054static_dispatch.cc.html
+++ b/html/054static_dispatch.cc.html
@@ -245,7 +245,7 @@ if ('onhashchange' in window) {
 <span id="L179" class="LineNr">179 </span>  <span class="Delimiter">}</span>
 <span id="L180" class="LineNr">180 </span><span class="Delimiter">}</span>
 <span id="L181" class="LineNr">181 </span>
-<span id="L182" class="LineNr">182 </span>string best_variant<span class="Delimiter">(</span>instruction&amp; inst<span class="Delimiter">,</span> <span class="Normal">const</span> recipe&amp; caller_recipe<span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L182" class="LineNr">182 </span>string best_variant<span class="Delimiter">(<span class="Normal">const</span> </span>instruction&amp; inst<span class="Delimiter">,</span> <span class="Normal">const</span> recipe&amp; caller_recipe<span class="Delimiter">)</span> <span class="Delimiter">{</span>
 <span id="L183" class="LineNr">183 </span>  <span class="Normal">const</span> vector&lt;recipe_ordinal&gt;&amp; variants = get<span class="Delimiter">(</span>Recipe_variants<span class="Delimiter">,</span> inst<span class="Delimiter">.</span>name<span class="Delimiter">);</span>
 <span id="L184" class="LineNr">184 </span>  vector&lt;recipe_ordinal&gt; candidates<span class="Delimiter">;</span>
 <span id="L185" class="LineNr">185 </span>