[cfe-commits] r39521 - /cfe/cfe/trunk/AST/StmtPrinter.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:45:15 PDT 2007
Author: clattner
Date: Wed Jul 11 11:45:15 2007
New Revision: 39521
URL: http://llvm.org/viewvc/llvm-project?rev=39521&view=rev
Log:
Don't print billions of spaces for a label with no indent.
Modified:
cfe/cfe/trunk/AST/StmtPrinter.cpp
Modified: cfe/cfe/trunk/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/StmtPrinter.cpp?rev=39521&r1=39520&r2=39521&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/StmtPrinter.cpp (original)
+++ cfe/cfe/trunk/AST/StmtPrinter.cpp Wed Jul 11 11:45:15 2007
@@ -74,7 +74,7 @@
}
std::ostream &Indent(int Delta = 0) const {
- for (unsigned i = 0, e = IndentLevel+Delta; i != e; ++i)
+ for (int i = 0, e = IndentLevel+Delta; i < e; ++i)
OS << " ";
return OS;
}
More information about the cfe-commits
mailing list