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. :)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64688 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-02-16 22:42:44 +00:00
Родитель 4310f4ee26
Коммит f592c929bd
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -246,7 +246,7 @@ InitListExpr::InitListExpr(SourceLocation lbraceloc,
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);
}