++ cannot be used to increment an enum, so do it another way

llvm-svn: 133781
This commit is contained in:
Peter Collingbourne 2011-06-24 01:12:22 +00:00
parent 2f675dcb39
commit 44c9b3758f
1 changed files with 1 additions and 1 deletions

View File

@ -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)