[PATCH] make helper function static

Bas van den Berg b.van.den.berg.nl at gmail.com
Mon Dec 2 23:44:19 PST 2013


CheckImplicitConversion() can be static to allow more compiler optimizations.

---
 lib/Sema/SemaChecking.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp
index 0b95c48..830936d 100644
--- a/lib/Sema/SemaChecking.cpp
+++ b/lib/Sema/SemaChecking.cpp
@@ -5210,7 +5210,7 @@ void CheckImplicitArgumentConversions(Sema &S, CallExpr *TheCall,
   }
 }
 
-void CheckImplicitConversion(Sema &S, Expr *E, QualType T,
+static void CheckImplicitConversion(Sema &S, Expr *E, QualType T,
                              SourceLocation CC, bool *ICContext = 0) {
   if (E->isTypeDependent() || E->isValueDependent()) return;
 
-- 
1.7.9.5




More information about the cfe-commits mailing list