diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-10 17:06:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-10 17:06:40 +0000 |
commit | 8ce68d232912bfa33a572631cf6f3073bcf112f2 (patch) | |
tree | 221e1e09558e5fbb52a21b96a16381c09e5339b2 | |
parent | 87cf5ac1b046a1db874b77dcb6e35f9c4b88c386 (diff) |
Fix "error: explicit template specialization cannot have a storage class"
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
-rw-r--r-- | Analysis/GRSimpleVals.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Analysis/GRSimpleVals.cpp b/Analysis/GRSimpleVals.cpp index c1bb9fd41b..ae06917e13 100644 --- a/Analysis/GRSimpleVals.cpp +++ b/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<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; |