aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-05 20:51:58 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-05 20:51:58 +0000
commit5fb79208352fa2f29bbd5f9b9c46deb77170a04e (patch)
tree1739d4220c36294966e48b9e9008c696dab01a00
parentfe6f4f015769446a74ec9535ec8032c9908a3708 (diff)
downloadexternal_llvm-5fb79208352fa2f29bbd5f9b9c46deb77170a04e.zip
external_llvm-5fb79208352fa2f29bbd5f9b9c46deb77170a04e.tar.gz
external_llvm-5fb79208352fa2f29bbd5f9b9c46deb77170a04e.tar.bz2
Using "unsigned" was masking the "size_t" version of this method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50668 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/PassNameParser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/PassNameParser.h b/include/llvm/Support/PassNameParser.h
index 8c31189..961638c 100644
--- a/include/llvm/Support/PassNameParser.h
+++ b/include/llvm/Support/PassNameParser.h
@@ -82,7 +82,7 @@ public:
// printOptionInfo - Print out information about this option. Override the
// default implementation to sort the table before we print...
- virtual void printOptionInfo(const cl::Option &O, unsigned GlobalWidth) const{
+ virtual void printOptionInfo(const cl::Option &O, size_t GlobalWidth) const {
PassNameParser *PNP = const_cast<PassNameParser*>(this);
std::sort(PNP->Values.begin(), PNP->Values.end(), ValLessThan);
cl::parser<const PassInfo*>::printOptionInfo(O, GlobalWidth);