mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Don't cast away constant qualifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2bbb22b8ef
commit
e840fef4c2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user