]> granicus.if.org Git - clang/commitdiff
Fix "error: explicit template specialization cannot have a storage class"
authorChris Lattner <sabre@nondot.org>
Mon, 10 Mar 2008 17:06:40 +0000 (17:06 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Mar 2008 17:06:40 +0000 (17:06 +0000)
with gcc 4.4, patch by Shantonu Sen!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48155 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/GRSimpleVals.cpp

index c1bb9fd41b41483726f7d607dba8a152f601a8ad..ae06917e13473b972c0864dbb4f20a31868ce55b 100644 (file)
@@ -28,7 +28,7 @@ static inline const PostStmt& GetLocation(ITERATOR I) {
 }
   
 template <>
-static inline const PostStmt& GetLocation(GRExprEngine::undef_arg_iterator I) {
+inline const PostStmt& GetLocation(GRExprEngine::undef_arg_iterator I) {
   return cast<PostStmt>(I->first->getLocation());
 }
 
@@ -55,8 +55,8 @@ static void EmitDiag(Diagnostic& Diag, SourceManager& SrcMgr,
 }
 
 template <typename ITERATOR>
-static void EmitWarning(Diagnostic& Diag, SourceManager& SrcMgr,
-                        ITERATOR I, ITERATOR E, const char* msg) {
+void EmitWarning(Diagnostic& Diag, SourceManager& SrcMgr,
+                 ITERATOR I, ITERATOR E, const char* msg) {
  
   std::ostringstream Out;
   Out << "[CHECKER] " << msg;