forked from OSchip/llvm-project
array_pod_sort loses some type safety, better use the right types.
llvm-svn: 191174
This commit is contained in:
parent
a92b80f8a0
commit
402f807d9d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue