r191174 - array_pod_sort loses some type safety, better use the right types.

Benjamin Kramer benny.kra at googlemail.com
Sun Sep 22 05:53:24 PDT 2013


Author: d0k
Date: Sun Sep 22 07:53:24 2013
New Revision: 191174

URL: http://llvm.org/viewvc/llvm-project?rev=191174&view=rev
Log:
array_pod_sort loses some type safety, better use the right types.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp?rev=191174&r1=191173&r2=191174&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp Sun Sep 22 07:53:24 2013
@@ -157,8 +157,8 @@ class ConfigDumper : public Checker< che
   typedef AnalyzerOptions::ConfigTable Table;
 
   static int compareEntry(const void *LHS, const void *RHS) {
-    return ((const Table::MapEntryTy *)LHS)->getKey().compare(
-           ((const Table::MapEntryTy *)RHS)->getKey());
+    return (*(const Table::MapEntryTy **)LHS)->getKey().compare(
+           (*(const Table::MapEntryTy **)RHS)->getKey());
   }
 
 public:





More information about the cfe-commits mailing list