Skip to content

Commit cb4aeef

Browse files
Merge pull request #67911 from felipepiovezan/felipe/delete_dead_code
[IRGen] Delete no-op code
2 parents d725e38 + af6599f commit cb4aeef

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)