From 1e830c07a27a4dcab519ab5142f383192c82a95e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 6 Apr 2008 04:22:39 +0000 Subject: templates can't be static. llvm-svn: 49258 --- clang/lib/Analysis/GRSimpleVals.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'clang/lib/Analysis/GRSimpleVals.cpp') diff --git a/clang/lib/Analysis/GRSimpleVals.cpp b/clang/lib/Analysis/GRSimpleVals.cpp index fe4c1e70d5e..d7ee5606a8e 100644 --- a/clang/lib/Analysis/GRSimpleVals.cpp +++ b/clang/lib/Analysis/GRSimpleVals.cpp @@ -161,12 +161,12 @@ public: // Utility functions. //===----------------------------------------------------------------------===// -template static inline +template inline ExplodedNode* GetNode(ITERATOR I) { return *I; } -template <> static inline +template <> inline ExplodedNode* GetNode(GRExprEngine::undef_arg_iterator I) { return I->first; } @@ -176,11 +176,11 @@ ExplodedNode* GetNode(GRExprEngine::undef_arg_iterator I) { //===----------------------------------------------------------------------===// template -static void EmitWarning(Diagnostic& Diag, PathDiagnosticClient* PD, - ASTContext& Ctx, BugReporter& BR, - const BugDescription& Desc, - ExplodedGraph& G, - ITERATOR I, ITERATOR E) { +void EmitWarning(Diagnostic& Diag, PathDiagnosticClient* PD, + ASTContext& Ctx, BugReporter& BR, + const BugDescription& Desc, + ExplodedGraph& G, + ITERATOR I, ITERATOR E) { for (; I != E; ++I) BR.EmitPathWarning(Diag, PD, Ctx, Desc, G, GetNode(I)); -- cgit v1.2.3