forked from OSchip/llvm-project
++ cannot be used to increment an enum, so do it another way
llvm-svn: 133781
This commit is contained in:
parent
2f675dcb39
commit
44c9b3758f
|
|
@ -905,7 +905,7 @@ Args::StringToFormat
|
|||
{
|
||||
StreamString error_strm;
|
||||
error_strm.Printf ("Invalid format character or name '%s'. Valid values are:\n", s);
|
||||
for (Format f = eFormatDefault; f < kNumFormats; ++f)
|
||||
for (Format f = eFormatDefault; f < kNumFormats; f = Format(f+1))
|
||||
{
|
||||
char format_char = FormatManager::GetFormatAsFormatChar(f);
|
||||
if (format_char)
|
||||
|
|
|
|||
Loading…
Reference in New Issue