@@ -3223,8 +3223,9 @@ void CodeGenFunction::EmitFunctionProlog(const CGFunctionInfo &FI,
3223
3223
dyn_cast<llvm::StructType>(ArgI.getCoerceToType ());
3224
3224
if (ArgI.isDirect () && !ArgI.getCanBeFlattened () && STy &&
3225
3225
STy->getNumElements () > 1 ) {
3226
- llvm::TypeSize StructSize = CGM.getDataLayout ().getTypeAllocSize (STy);
3227
- llvm::TypeSize PtrElementSize =
3226
+ [[maybe_unused]] llvm::TypeSize StructSize =
3227
+ CGM.getDataLayout ().getTypeAllocSize (STy);
3228
+ [[maybe_unused]] llvm::TypeSize PtrElementSize =
3228
3229
CGM.getDataLayout ().getTypeAllocSize (ConvertTypeForMem (Ty));
3229
3230
if (STy->containsHomogeneousScalableVectorTypes ()) {
3230
3231
assert (StructSize == PtrElementSize &&
@@ -5310,9 +5311,10 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
5310
5311
dyn_cast<llvm::StructType>(ArgInfo.getCoerceToType ());
5311
5312
if (STy && ArgInfo.isDirect () && !ArgInfo.getCanBeFlattened ()) {
5312
5313
llvm::Type *SrcTy = ConvertTypeForMem (I->Ty );
5313
- llvm::TypeSize SrcTypeSize =
5314
+ [[maybe_unused]] llvm::TypeSize SrcTypeSize =
5314
5315
CGM.getDataLayout ().getTypeAllocSize (SrcTy);
5315
- llvm::TypeSize DstTypeSize = CGM.getDataLayout ().getTypeAllocSize (STy);
5316
+ [[maybe_unused]] llvm::TypeSize DstTypeSize =
5317
+ CGM.getDataLayout ().getTypeAllocSize (STy);
5316
5318
if (STy->containsHomogeneousScalableVectorTypes ()) {
5317
5319
assert (SrcTypeSize == DstTypeSize &&
5318
5320
" Only allow non-fractional movement of structure with "
0 commit comments