[llvm] r278241 - Fix build break of VS 2013 debug builds

Roger Ferrer Ibanez via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 09:39:58 PDT 2016


Author: rogfer01
Date: Wed Aug 10 11:39:58 2016
New Revision: 278241

URL: http://llvm.org/viewvc/llvm-project?rev=278241&view=rev
Log:
Fix build break of VS 2013 debug builds

In debug mode extra macros are enabled for several C++ algorithms. Some of them
may cause unfortunate build failures.

This commit adds a redundant operator() to work around one of those troublesome
macros which was hit accidentally by change r278012.



Modified:
    llvm/trunk/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp

Modified: llvm/trunk/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp?rev=278241&r1=278240&r2=278241&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp Wed Aug 10 11:39:58 2016
@@ -517,6 +517,9 @@ struct CompareInsn {
   bool operator() (StringRef LHS, const InsnMatchEntry &RHS) {
     return LHS < RHS.Format;
   }
+  bool operator() (const InsnMatchEntry &LHS, const InsnMatchEntry &RHS) {
+    return LHS.Format < RHS.Format;
+  }
 };
 
 // Table initializing information for parsing the .insn directive.




More information about the llvm-commits mailing list