summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-06-24 01:12:22 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-06-24 01:12:22 +0000
commit44c9b3758fda7443a201d71925a5b51b1cf4aaf2 (patch)
tree5559e20e9b4d253c87baa31827c7cc27b9d1cdf2
parent2f675dcb39cea5b4de26c6a5cfe0be0693e0dc32 (diff)
downloadbcm5719-llvm-44c9b3758fda7443a201d71925a5b51b1cf4aaf2.tar.gz
bcm5719-llvm-44c9b3758fda7443a201d71925a5b51b1cf4aaf2.zip
++ cannot be used to increment an enum, so do it another way
llvm-svn: 133781
-rw-r--r--lldb/source/Interpreter/Args.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/Args.cpp b/lldb/source/Interpreter/Args.cpp
index c1bc9953323..101a1c26a15 100644
--- a/lldb/source/Interpreter/Args.cpp
+++ b/lldb/source/Interpreter/Args.cpp
@@ -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)
OpenPOWER on IntegriCloud