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

llvm-svn: 191174
This commit is contained in:
Benjamin Kramer 2013-09-22 12:53:24 +00:00
parent a92b80f8a0
commit 402f807d9d
1 changed files with 2 additions and 2 deletions

View 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: