Using "unsigned" was masking the "size_t" version of this method.
authorBill Wendling <isanbard@gmail.com>
Mon, 5 May 2008 20:51:58 +0000 (20:51 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 5 May 2008 20:51:58 +0000 (20:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50668 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/PassNameParser.h

index 8c31189be2413148c4f07f17245baafbca169e8e..961638c43f49a3ecbffaf6cef297b02b463c49e1 100644 (file)
@@ -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);