Skip to content

Commit af6599f

Browse files
[IRGen] Delete no-op code
Commit 5c3ccf5 added a number of blocks of code which were partially removed by 39af79f. This partial remove left lines of code doing nothin; we remove them here.
1 parent 3113e83 commit af6599f

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2987,11 +2987,6 @@ void IRGenDebugInfoImpl::emitGlobalVariableDeclaration(
29872987
if (Opts.DebugInfoLevel <= IRGenDebugInfoLevel::LineTables)
29882988
return;
29892989

2990-
if (swift::TypeBase *ty = DbgTy.getType()) {
2991-
if (MetatypeType *metaTy = dyn_cast<MetatypeType>(ty))
2992-
ty = metaTy->getInstanceType().getPointer();
2993-
}
2994-
29952990
llvm::DIType *DITy = getOrCreateType(DbgTy);
29962991
VarDecl *VD = nullptr;
29972992
if (Loc)

lib/IRGen/IRGenSIL.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,11 +1159,6 @@ class IRGenSILFunction :
11591159
const SILDebugScope *DS, SILLocation VarLoc, SILDebugVariable VarInfo,
11601160
IndirectionKind Indirection,
11611161
AddrDbgInstrKind DbgInstrKind = AddrDbgInstrKind::DbgDeclare) {
1162-
if (swift::TypeBase *ty = SILTy.getASTType().getPointer()) {
1163-
if (MetatypeType *metaTy = dyn_cast<MetatypeType>(ty))
1164-
ty = metaTy->getRootClass().getPointer();
1165-
}
1166-
11671162
assert(IGM.DebugInfo && "debug info not enabled");
11681163

11691164
if (VarInfo.ArgNo) {

0 commit comments

Comments
 (0)