From 89fc4d4af7e8d77ea5e682378fbaf60746bcc4e9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 10 Mar 2008 17:06:40 +0000 Subject: [PATCH] Fix "error: explicit template specialization cannot have a storage class" with gcc 4.4, patch by Shantonu Sen! llvm-svn: 48155 --- clang/Analysis/GRSimpleVals.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/Analysis/GRSimpleVals.cpp b/clang/Analysis/GRSimpleVals.cpp index c1bb9fd41b41..ae06917e1347 100644 --- a/clang/Analysis/GRSimpleVals.cpp +++ b/clang/Analysis/GRSimpleVals.cpp @@ -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(I->first->getLocation()); } @@ -55,8 +55,8 @@ static void EmitDiag(Diagnostic& Diag, SourceManager& SrcMgr, } template -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;