<div dir="ltr"><div>I did not measure it. The main reason was to narrow the scope so reading/analysing the code<br></div>is easier.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 8:55 AM, Alp Toker <span dir="ltr"><<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On 03/12/2013 07:44, Bas van den Berg wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
CheckImplicitConversion() can be static to allow more compiler optimizations.<br>
<br>
---<br>
  lib/Sema/SemaChecking.cpp |    2 +-<br>
  1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp<br>
index 0b95c48..830936d 100644<br>
--- a/lib/Sema/SemaChecking.cpp<br>
+++ b/lib/Sema/SemaChecking.cpp<br>
@@ -5210,7 +5210,7 @@ void CheckImplicitArgumentConversio<u></u>ns(Sema &S, CallExpr *TheCall,<br>
    }<br>
  }<br>
  -void CheckImplicitConversion(Sema &S, Expr *E, QualType T,<br>
+static void CheckImplicitConversion(Sema &S, Expr *E, QualType T,<br>
                               SourceLocation CC, bool *ICContext = 0) {<br>
    if (E->isTypeDependent() || E->isValueDependent()) return;<br>
  <br>
</blockquote>
<br></div></div>
These functions are in an anonymous namespace so should get the same optimisations as 'static'.<br>
<br>
Did you see a difference in generated code / performance or was this just a speculative change?<span class="HOEnZb"><font color="#888888"><br>
<br>
Alp.<br>
<br>
<br>
-- <br>
<a href="http://www.nuanti.com" target="_blank">http://www.nuanti.com</a><br>
the browser experts<br>
<br>
</font></span></blockquote></div><br></div>