[cfe-commits] r48155 - /cfe/trunk/Analysis/GRSimpleVals.cpp
Chris Lattner
sabre at nondot.org
Mon Mar 10 10:06:40 PDT 2008
Author: lattner
Date: Mon Mar 10 12:06:40 2008
New Revision: 48155
URL: http://llvm.org/viewvc/llvm-project?rev=48155&view=rev
Log:
Fix "error: explicit template specialization cannot have a storage class"
with gcc 4.4, patch by Shantonu Sen!
Modified:
cfe/trunk/Analysis/GRSimpleVals.cpp
Modified: cfe/trunk/Analysis/GRSimpleVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRSimpleVals.cpp?rev=48155&r1=48154&r2=48155&view=diff
==============================================================================
--- cfe/trunk/Analysis/GRSimpleVals.cpp (original)
+++ cfe/trunk/Analysis/GRSimpleVals.cpp Mon Mar 10 12:06:40 2008
@@ -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;
More information about the cfe-commits
mailing list