зеркало из https://github.com/microsoft/clang-1.git
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. :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64688 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
4310f4ee26
Коммит
f592c929bd
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче