[cfe-commits] r64688 - /cfe/trunk/lib/AST/Expr.cpp
Daniel Dunbar
daniel at zuster.org
Mon Feb 16 14:42:44 PST 2009
Author: ddunbar
Date: Mon Feb 16 16:42:44 2009
New Revision: 64688
URL: http://llvm.org/viewvc/llvm-project?rev=64688&view=rev
Log:
Unbreak clang.
Doug: please verify that it is expected that LastIdx can be less that
NumInits. And perhaps add a comment so that Chris doesn't break your
code. :)
Modified:
cfe/trunk/lib/AST/Expr.cpp
Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=64688&r1=64687&r2=64688&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Mon Feb 16 16:42:44 2009
@@ -246,7 +246,7 @@
void InitListExpr::resizeInits(ASTContext &Context, unsigned NumInits) {
for (unsigned Idx = NumInits, LastIdx = InitExprs.size();
- Idx != LastIdx; ++Idx)
+ Idx < LastIdx; ++Idx)
delete InitExprs[Idx];
InitExprs.resize(NumInits, 0);
}
More information about the cfe-commits
mailing list