@@ -375,27 +375,30 @@ bool AllocRefDynamicInst::isDynamicTypeDeinitAndSizeKnownEquivalentToBaseType()
375375AllocBoxInst::AllocBoxInst (SILDebugLocation Loc, CanSILBoxType BoxType,
376376 ArrayRef<SILValue> TypeDependentOperands,
377377 SILFunction &F, Optional<SILDebugVariable> Var,
378- bool hasDynamicLifetime, bool reflection)
378+ bool hasDynamicLifetime, bool reflection,
379+ bool usesMoveableValueDebugInfo)
379380 : NullaryInstructionWithTypeDependentOperandsBase(
380381 Loc, TypeDependentOperands, SILType::getPrimitiveObjectType(BoxType)),
381382 VarInfo(Var, getTrailingObjects<char >()) {
382383 sharedUInt8 ().AllocBoxInst .dynamicLifetime = hasDynamicLifetime;
383384 sharedUInt8 ().AllocBoxInst .reflection = reflection;
385+ sharedUInt8 ().AllocBoxInst .usesMoveableValueDebugInfo =
386+ usesMoveableValueDebugInfo;
384387}
385388
386- AllocBoxInst *AllocBoxInst::create (SILDebugLocation Loc,
387- CanSILBoxType BoxType,
389+ AllocBoxInst *AllocBoxInst::create (SILDebugLocation Loc, CanSILBoxType BoxType,
388390 SILFunction &F,
389391 Optional<SILDebugVariable> Var,
390- bool hasDynamicLifetime,
391- bool reflection ) {
392+ bool hasDynamicLifetime, bool reflection,
393+ bool usesMoveableValueDebugInfo ) {
392394 SmallVector<SILValue, 8 > TypeDependentOperands;
393395 collectTypeDependentOperands (TypeDependentOperands, F, BoxType);
394396 auto Sz = totalSizeToAlloc<swift::Operand, char >(TypeDependentOperands.size (),
395397 Var ? Var->Name .size () : 0 );
396398 auto Buf = F.getModule ().allocateInst (Sz, alignof (AllocBoxInst));
397- return ::new (Buf) AllocBoxInst (Loc, BoxType, TypeDependentOperands, F, Var,
398- hasDynamicLifetime, reflection);
399+ return ::new (Buf)
400+ AllocBoxInst (Loc, BoxType, TypeDependentOperands, F, Var,
401+ hasDynamicLifetime, reflection, usesMoveableValueDebugInfo);
399402}
400403
401404SILType AllocBoxInst::getAddressType () const {
0 commit comments