StaticAnalyzer/Core: fix MSVC build

Fix build breakage from r150378: MSVC only allows taking the
address of a member function using the &ClassName::Function
syntax.# It was giving

llvm-svn: 150387
This commit is contained in:
Dylan Noblesmith 2012-02-13 14:22:35 +00:00
parent ea308d876b
commit 043fdf091d
1 changed files with 3 additions and 1 deletions

View File

@ -107,7 +107,9 @@ public:
/// checker does not require any custom initialization.
template <class T>
void addChecker(StringRef fullName, StringRef desc) {
addChecker(&initializeManager<T>, fullName, desc);
// Avoid MSVC's Compiler Error C2276:
// http://msdn.microsoft.com/en-us/library/850cstw1(v=VS.80).aspx
addChecker(&CheckerRegistry::initializeManager<T>, fullName, desc);
}
/// Initializes a CheckerManager by calling the initialization functions for