From 3ae30f87811642bc39652d3d8dcaf0825fef6625 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 6 Apr 2008 04:22:39 +0000 Subject: [PATCH] templates can't be static. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49258 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/GRSimpleVals.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/Analysis/GRSimpleVals.cpp b/lib/Analysis/GRSimpleVals.cpp index fe4c1e70d5..d7ee5606a8 100644 --- a/lib/Analysis/GRSimpleVals.cpp +++ b/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)); -- 2.40.0