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
diff --git a/Analysis/GRSimpleVals.cpp b/Analysis/GRSimpleVals.cpp
index c1bb9fd..ae06917 100644
--- a/Analysis/GRSimpleVals.cpp
+++ b/Analysis/GRSimpleVals.cpp
@@ -28,7 +28,7 @@
}
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 @@
}
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;