[cfe-commits] r49258 - /cfe/trunk/lib/Analysis/GRSimpleVals.cpp
Chris Lattner
sabre at nondot.org
Sat Apr 5 21:22:39 PDT 2008
Author: lattner
Date: Sat Apr 5 23:22:39 2008
New Revision: 49258
URL: http://llvm.org/viewvc/llvm-project?rev=49258&view=rev
Log:
templates can't be static.
Modified:
cfe/trunk/lib/Analysis/GRSimpleVals.cpp
Modified: cfe/trunk/lib/Analysis/GRSimpleVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRSimpleVals.cpp?rev=49258&r1=49257&r2=49258&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/GRSimpleVals.cpp (original)
+++ cfe/trunk/lib/Analysis/GRSimpleVals.cpp Sat Apr 5 23:22:39 2008
@@ -161,12 +161,12 @@
// Utility functions.
//===----------------------------------------------------------------------===//
-template <typename ITERATOR> static inline
+template <typename ITERATOR> inline
ExplodedNode<ValueState>* GetNode(ITERATOR I) {
return *I;
}
-template <> static inline
+template <> inline
ExplodedNode<ValueState>* GetNode(GRExprEngine::undef_arg_iterator I) {
return I->first;
}
@@ -176,11 +176,11 @@
//===----------------------------------------------------------------------===//
template <typename ITERATOR>
-static void EmitWarning(Diagnostic& Diag, PathDiagnosticClient* PD,
- ASTContext& Ctx, BugReporter& BR,
- const BugDescription& Desc,
- ExplodedGraph<GRExprEngine>& G,
- ITERATOR I, ITERATOR E) {
+void EmitWarning(Diagnostic& Diag, PathDiagnosticClient* PD,
+ ASTContext& Ctx, BugReporter& BR,
+ const BugDescription& Desc,
+ ExplodedGraph<GRExprEngine>& G,
+ ITERATOR I, ITERATOR E) {
for (; I != E; ++I)
BR.EmitPathWarning(Diag, PD, Ctx, Desc, G, GetNode(I));
More information about the cfe-commits
mailing list