summaryrefslogtreecommitdiff
path: root/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-03-12 10:51:06 +0000
committerDuncan Sands <baldrick@free.fr>2012-03-12 10:51:06 +0000
commite840fef4c2cac5f85d17a1bffe3f0ac14724d115 (patch)
treebdec70211fd327ed3a2e236007f4cd6353c38707 /lib/Support/CommandLine.cpp
parent2bbb22b8ef571cc11e0c0bb0a0f13670b5ef5cff (diff)
downloadllvm-e840fef4c2cac5f85d17a1bffe3f0ac14724d115.tar.gz
llvm-e840fef4c2cac5f85d17a1bffe3f0ac14724d115.tar.bz2
llvm-e840fef4c2cac5f85d17a1bffe3f0ac14724d115.tar.xz
Don't cast away constant qualifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r--lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index d1ec4b005b..e6fdf16a82 100644
--- a/lib/Support/CommandLine.cpp
+++ b/lib/Support/CommandLine.cpp
@@ -1191,7 +1191,7 @@ printOptionNoValue(const Option &O, size_t GlobalWidth) const {
static int OptNameCompare(const void *LHS, const void *RHS) {
typedef std::pair<const char *, Option*> pair_ty;
- return strcmp(((pair_ty*)LHS)->first, ((pair_ty*)RHS)->first);
+ return strcmp(((const pair_ty*)LHS)->first, ((const pair_ty*)RHS)->first);
}
// Copy Options into a vector so we can sort them as we like.