forked from OSchip/llvm-project
parent
4d9547332c
commit
26538e8cc5
|
@ -9582,14 +9582,11 @@ static ExprResult captureInLambda(Sema &S, LambdaScopeInfo *LSI,
|
||||||
// the source array, and other clients (e.g., CodeGen) will perform
|
// the source array, and other clients (e.g., CodeGen) will perform
|
||||||
// the necessary iteration with these index variables.
|
// the necessary iteration with these index variables.
|
||||||
SmallVector<VarDecl *, 4> IndexVariables;
|
SmallVector<VarDecl *, 4> IndexVariables;
|
||||||
bool InitializingArray = false;
|
|
||||||
QualType BaseType = FieldType;
|
QualType BaseType = FieldType;
|
||||||
QualType SizeType = S.Context.getSizeType();
|
QualType SizeType = S.Context.getSizeType();
|
||||||
LSI->ArrayIndexStarts.push_back(LSI->ArrayIndexVars.size());
|
LSI->ArrayIndexStarts.push_back(LSI->ArrayIndexVars.size());
|
||||||
while (const ConstantArrayType *Array
|
while (const ConstantArrayType *Array
|
||||||
= S.Context.getAsConstantArrayType(BaseType)) {
|
= S.Context.getAsConstantArrayType(BaseType)) {
|
||||||
InitializingArray = true;
|
|
||||||
|
|
||||||
// Create the iteration variable for this array index.
|
// Create the iteration variable for this array index.
|
||||||
IdentifierInfo *IterationVarName = 0;
|
IdentifierInfo *IterationVarName = 0;
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue