diff options
author | Duncan Sands <baldrick@free.fr> | 2012-03-12 10:51:06 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-03-12 10:51:06 +0000 |
commit | e840fef4c2cac5f85d17a1bffe3f0ac14724d115 (patch) | |
tree | bdec70211fd327ed3a2e236007f4cd6353c38707 /lib/Support | |
parent | 2bbb22b8ef571cc11e0c0bb0a0f13670b5ef5cff (diff) | |
download | external_llvm-e840fef4c2cac5f85d17a1bffe3f0ac14724d115.zip external_llvm-e840fef4c2cac5f85d17a1bffe3f0ac14724d115.tar.gz external_llvm-e840fef4c2cac5f85d17a1bffe3f0ac14724d115.tar.bz2 |
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')
-rw-r--r-- | lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index d1ec4b0..e6fdf16 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. |