[LLVMdev] Visual Studio 2005/2008 ClangDiagnosticsEmitter Patch

Ted Kremenek kremenek at apple.com
Wed Apr 1 11:24:30 PDT 2009


Applied!  Thanks!

On Apr 1, 2009, at 7:20 AM, Diekelman, Brian P CTR SAF/FMP (AFFSO)  
wrote:

> I'm in the process of trying to build LLVM and clang in Visual Studio
> 2008.
>
> Building trunk of LLVM and clang fails because of an VC STL issue:
> http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Fee
> dbackID=328343
>
>
> 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);
>   }
> };
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list