From: Duncan Sands Date: Mon, 12 Mar 2012 10:51:06 +0000 (+0000) Subject: Don't cast away constant qualifier. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e840fef4c2cac5f85d17a1bffe3f0ac14724d115;p=oota-llvm.git Don't cast away constant qualifier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152553 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index d1ec4b005bf..e6fdf16a82d 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 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.