diff options
| author | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-02-13 14:22:35 +0000 |
|---|---|---|
| committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-02-13 14:22:35 +0000 |
| commit | 043fdf091da85ade9473e9c627b38fde4ba6cff3 (patch) | |
| tree | 9f5884a0a5415fa2d962cb0f5b636f84cb2bc127 /clang | |
| parent | ea308d876bf7da30d02891886c8e60cef45ee13e (diff) | |
| download | bcm5719-llvm-043fdf091da85ade9473e9c627b38fde4ba6cff3.tar.gz bcm5719-llvm-043fdf091da85ade9473e9c627b38fde4ba6cff3.zip | |
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
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h b/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h index b59c14d32f9..1452d45073a 100644 --- a/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h +++ b/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h @@ -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 |

