projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bbb22b
)
Don't cast away constant qualifier.
author
Duncan Sands
<baldrick@free.fr>
Mon, 12 Mar 2012 10:51:06 +0000
(10:51 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Mon, 12 Mar 2012 10:51:06 +0000
(10:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152553
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/CommandLine.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/CommandLine.cpp
b/lib/Support/CommandLine.cpp
index d1ec4b005bf3788720dabb6dc674ecda08feb1e8..e6fdf16a82de9a951f40875fd83ee1a38e508803 100644
(file)
--- 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.