1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Using "unsigned" was masking the "size_t" version of this method.

llvm-svn: 50668
This commit is contained in:
Bill Wendling 2008-05-05 20:51:58 +00:00
parent 50d16c2939
commit 9facb00af6

View File

@ -82,7 +82,7 @@ public:
// printOptionInfo - Print out information about this option. Override the // printOptionInfo - Print out information about this option. Override the
// default implementation to sort the table before we print... // 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); PassNameParser *PNP = const_cast<PassNameParser*>(this);
std::sort(PNP->Values.begin(), PNP->Values.end(), ValLessThan); std::sort(PNP->Values.begin(), PNP->Values.end(), ValLessThan);
cl::parser<const PassInfo*>::printOptionInfo(O, GlobalWidth); cl::parser<const PassInfo*>::printOptionInfo(O, GlobalWidth);