@@ -467,9 +467,9 @@ irgen::emitTypeMetadataPack(IRGenFunction &IGF, CanPackType packType,
467467 }
468468
469469 assert (packType->containsPackExpansionType ());
470- auto pack = IGF. emitDynamicAlloca (IGF. IGM . TypeMetadataPtrTy , shape,
471- IGF.IGM .getPointerAlignment () ,
472- /* allowTaskAlloc= */ true );
470+ auto pack =
471+ IGF.emitDynamicAlloca (IGF. IGM .TypeMetadataPtrTy , shape ,
472+ IGF. IGM . getPointerAlignment (), AllowsTaskAlloc );
473473
474474 auto visitFn =
475475 [&](CanType eltTy, unsigned staticIndex,
@@ -612,9 +612,9 @@ irgen::emitWitnessTablePack(IRGenFunction &IGF, CanPackType packType,
612612 }
613613
614614 assert (packType->containsPackExpansionType ());
615- auto pack = IGF. emitDynamicAlloca (IGF. IGM . WitnessTablePtrTy , shape,
616- IGF.IGM .getPointerAlignment () ,
617- /* allowTaskAlloc= */ true );
615+ auto pack =
616+ IGF.emitDynamicAlloca (IGF. IGM .WitnessTablePtrTy , shape ,
617+ IGF. IGM . getPointerAlignment (), AllowsTaskAlloc );
618618
619619 auto index = 0 ;
620620 auto visitFn = [&](CanType eltTy, unsigned staticIndex,
@@ -1184,9 +1184,9 @@ StackAddress irgen::allocatePack(IRGenFunction &IGF, CanSILPackType packType) {
11841184 }
11851185
11861186 assert (packType->containsPackExpansionType ());
1187- auto addr = IGF. emitDynamicAlloca (IGF. IGM . OpaquePtrTy , shape,
1188- IGF.IGM .getPointerAlignment () ,
1189- /* allowTaskAlloc= */ true );
1187+ auto addr =
1188+ IGF.emitDynamicAlloca (IGF. IGM .OpaquePtrTy , shape ,
1189+ IGF. IGM . getPointerAlignment (), AllowsTaskAlloc );
11901190
11911191 return addr;
11921192}
@@ -1255,10 +1255,9 @@ irgen::emitDynamicTupleTypeLabels(IRGenFunction &IGF, CanTupleType type,
12551255 llvm::ConstantInt::get (IGF.IGM .SizeTy , 1 ));
12561256
12571257 // Allocate space for the label string; we fill it in below.
1258- StackAddress labelString = IGF.emitDynamicAlloca (
1259- IGF.IGM .Int8Ty , labelLength,
1260- IGF.IGM .getPointerAlignment (),
1261- /* allowTaskAlloc=*/ true );
1258+ StackAddress labelString =
1259+ IGF.emitDynamicAlloca (IGF.IGM .Int8Ty , labelLength,
1260+ IGF.IGM .getPointerAlignment (), AllowsTaskAlloc);
12621261
12631262 // Get the static label string, where each pack expansion is one element.
12641263 auto *staticLabelString = getTupleLabelsString (IGF.IGM , type);
@@ -1371,9 +1370,8 @@ irgen::emitDynamicFunctionParameterFlags(IRGenFunction &IGF,
13711370 AnyFunctionType::CanParamArrayRef params,
13721371 CanPackType packType,
13731372 llvm::Value *shapeExpression) {
1374- auto array =
1375- IGF.emitDynamicAlloca (IGF.IGM .Int32Ty , shapeExpression,
1376- Alignment (4 ), /* allowTaskAlloc=*/ true );
1373+ auto array = IGF.emitDynamicAlloca (IGF.IGM .Int32Ty , shapeExpression,
1374+ Alignment (4 ), AllowsTaskAlloc);
13771375
13781376 unsigned numExpansions = 0 ;
13791377
@@ -1431,9 +1429,9 @@ irgen::emitInducedTupleTypeMetadataPack(
14311429 IRGenFunction &IGF, llvm::Value *tupleMetadata) {
14321430 auto *shape = emitTupleTypeMetadataLength (IGF, tupleMetadata);
14331431
1434- auto pack = IGF. emitDynamicAlloca (IGF. IGM . TypeMetadataPtrTy , shape,
1435- IGF.IGM .getPointerAlignment () ,
1436- /* allowTaskAlloc= */ true );
1432+ auto pack =
1433+ IGF.emitDynamicAlloca (IGF. IGM .TypeMetadataPtrTy , shape ,
1434+ IGF. IGM . getPointerAlignment (), AllowsTaskAlloc );
14371435 auto elementForIndex =
14381436 [&](llvm::Value *index) -> llvm::Value * {
14391437 return irgen::emitTupleTypeMetadataElementType (IGF, tupleMetadata, index);
0 commit comments