File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -875,6 +875,8 @@ SILCloner<ImplClass>::visitAllocStackInst(AllocStackInst *Inst) {
875
875
Loc = MandatoryInlinedLocation::getAutoGeneratedLocation ();
876
876
VarInfo = std::nullopt;
877
877
}
878
+ if (VarInfo && VarInfo->Type )
879
+ VarInfo->Type = getOpType (*VarInfo->Type );
878
880
auto *NewInst = getBuilder ().createAllocStack (
879
881
Loc, getOpType (Inst->getElementType ()), VarInfo,
880
882
Inst->hasDynamicLifetime (), Inst->isLexical (), Inst->isFromVarDecl (),
@@ -1408,6 +1410,8 @@ SILCloner<ImplClass>::visitDebugValueInst(DebugValueInst *Inst) {
1408
1410
// Since we want the debug info to survive, we do not remap the location here.
1409
1411
SILDebugVariable VarInfo = *Inst->getVarInfo ();
1410
1412
getBuilder ().setCurrentDebugScope (getOpScope (Inst->getDebugScope ()));
1413
+ if (VarInfo.Type )
1414
+ VarInfo.Type = getOpType (*VarInfo.Type );
1411
1415
auto *NewInst = getBuilder ().createDebugValue (
1412
1416
Inst->getLoc (), getOpValue (Inst->getOperand ()), VarInfo,
1413
1417
Inst->poisonRefs (), Inst->usesMoveableValueDebugInfo (), Inst->hasTrace ());
You can’t perform that action at this time.
0 commit comments