@@ -3671,7 +3671,7 @@ void IRGenSILFunction::visitDebugValueInst(DebugValueInst *i) {
3671
3671
if (VarDecl *Decl = i->getDecl ()) {
3672
3672
DbgTy = DebugTypeInfo::getLocalVariable (
3673
3673
CurSILFn->getDeclContext (), CurSILFn->getGenericEnvironment (), Decl,
3674
- RealTy, getTypeInfo (SILVal->getType ()), /* Unwrap= */ false );
3674
+ RealTy, getTypeInfo (SILVal->getType ()));
3675
3675
} else if (i->getFunction ()->isBare () &&
3676
3676
!SILTy.hasArchetype () && !Name.empty ()) {
3677
3677
// Preliminary support for .sil debug information.
@@ -3713,16 +3713,10 @@ void IRGenSILFunction::visitDebugValueAddrInst(DebugValueAddrInst *i) {
3713
3713
auto Addr = getLoweredAddress (SILVal).getAddress ();
3714
3714
SILType SILTy = SILVal->getType ();
3715
3715
auto RealType = SILTy.getASTType ();
3716
- // Unwrap implicitly indirect types and types that are passed by
3717
- // reference only at the SIL level and below.
3718
- //
3719
- // FIXME: Should this check if the lowered SILType is address only
3720
- // instead? Otherwise optionals of archetypes etc will still have
3721
- // 'Unwrap' set to false.
3722
- bool Unwrap = VarInfo->Constant || SILTy.is <ArchetypeType>();
3716
+
3723
3717
auto DbgTy = DebugTypeInfo::getLocalVariable (
3724
3718
CurSILFn->getDeclContext (), CurSILFn->getGenericEnvironment (), Decl,
3725
- RealType, getTypeInfo (SILVal->getType ()), Unwrap );
3719
+ RealType, getTypeInfo (SILVal->getType ()));
3726
3720
bindArchetypes (DbgTy.getType ());
3727
3721
if (!IGM.DebugInfo )
3728
3722
return ;
@@ -4011,7 +4005,7 @@ void IRGenSILFunction::emitDebugInfoForAllocStack(AllocStackInst *i,
4011
4005
auto RealType = SILTy.getASTType ();
4012
4006
auto DbgTy = DebugTypeInfo::getLocalVariable (
4013
4007
CurSILFn->getDeclContext (), CurSILFn->getGenericEnvironment (), Decl,
4014
- RealType, type, false );
4008
+ RealType, type);
4015
4009
4016
4010
// FIXME: This is working around the inverse special case in LLDB.
4017
4011
if (DbgTy.isImplicitlyIndirect ())
@@ -4208,7 +4202,7 @@ void IRGenSILFunction::visitAllocBoxInst(swift::AllocBoxInst *i) {
4208
4202
auto RealType = SILTy.getASTType ();
4209
4203
auto DbgTy = DebugTypeInfo::getLocalVariable (
4210
4204
CurSILFn->getDeclContext (), CurSILFn->getGenericEnvironment (), Decl,
4211
- RealType, type, /* Unwrap= */ false );
4205
+ RealType, type);
4212
4206
4213
4207
if (isInlinedGeneric (Decl, i->getDebugScope ()))
4214
4208
return ;
0 commit comments