[LLVMdev] Visual Studio 2005/2008 ClangDiagnosticsEmitter Patch

Diekelman, Brian P CTR SAF/FMP (AFFSO) Brian.Diekelman at wpafb.af.mil
Wed Apr 1 07:20:34 PDT 2009

I'm in the process of trying to build LLVM and clang in Visual Studio

Building trunk of LLVM and clang fails because of an VC STL issue:

Here's a patch that allows tablegen to compile:

Index: TableGen/ClangDiagnosticsEmitter.cpp
--- TableGen/ClangDiagnosticsEmitter.cpp	(revision 68202)
+++ TableGen/ClangDiagnosticsEmitter.cpp	(working copy)
@@ -135,7 +135,7 @@
 namespace {
 struct VISIBILITY_HIDDEN CompareOptName {  
-  bool operator()(const Record* A, const Record* B) {
+  bool operator()(const Record* A, const Record* B) const {
     return getOptName(A) < getOptName(B);    

More information about the llvm-dev mailing list