Fix "error: explicit template specialization cannot have a storage class"

with gcc 4.4, patch by Shantonu Sen!

llvm-svn: 48155
This commit is contained in:
Chris Lattner 2008-03-10 17:06:40 +00:00
parent a1cc15fec4
commit 89fc4d4af7
1 changed files with 3 additions and 3 deletions

View 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;