summaryrefslogtreecommitdiff
path: root/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-09-22 14:10:29 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-09-22 14:10:29 +0000
commit767b3d2000a00c56e1a3c19372810e2b7d66b76c (patch)
tree14e0235478719a95964df1affd01fdd0e91bb2bf /lib/Frontend/PrintPreprocessedOutput.cpp
parent2d46cc271e209ff6d4ec8f77d242288ef51cf79b (diff)
downloadclang-767b3d2000a00c56e1a3c19372810e2b7d66b76c.tar.gz
clang-767b3d2000a00c56e1a3c19372810e2b7d66b76c.tar.bz2
clang-767b3d2000a00c56e1a3c19372810e2b7d66b76c.tar.xz
Fix array_pod_sort predicates after LLVM change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--lib/Frontend/PrintPreprocessedOutput.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Frontend/PrintPreprocessedOutput.cpp b/lib/Frontend/PrintPreprocessedOutput.cpp
index 3e45fc79f4..ecdfb095e6 100644
--- a/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -691,9 +691,7 @@ static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok,
}
typedef std::pair<const IdentifierInfo *, MacroInfo *> id_macro_pair;
-static int MacroIDCompare(const void* a, const void* b) {
- const id_macro_pair *LHS = static_cast<const id_macro_pair*>(a);
- const id_macro_pair *RHS = static_cast<const id_macro_pair*>(b);
+static int MacroIDCompare(const id_macro_pair *LHS, const id_macro_pair *RHS) {
return LHS->first->getName().compare(RHS->first->getName());
}