]> granicus.if.org Git - clang/commitdiff
array_pod_sort loses some type safety, better use the right types.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 22 Sep 2013 12:53:24 +0000 (12:53 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 22 Sep 2013 12:53:24 +0000 (12:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191174 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/DebugCheckers.cpp

index 337770a05ceb209e1d2951c3faa19062c25d5a43..051ef8ca6b7b4d39465bd0eeb220e6451e04e3ed 100644 (file)
@@ -157,8 +157,8 @@ class ConfigDumper : public Checker< check::EndOfTranslationUnit > {
   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: