Skip to content

Commit 35fd887

Browse files
committed
Remove dead code.
1 parent c0c8fbe commit 35fd887

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,8 +1155,6 @@ llvm::DINodeArray IRGenDebugInfo::getEnumElements(DebugTypeInfo DbgTy,
11551155
auto MTy = createMemberType(ElemDbgTy, ElemDecl->getName().str(), Offset,
11561156
Scope, File, Flags);
11571157
Elements.push_back(MTy);
1158-
if (ED->isIndirect() || ElemDecl->isIndirect())
1159-
IndirectEnumCases.insert(MTy);
11601158
}
11611159
}
11621160
return DBuilder.getOrCreateArray(Elements);

lib/IRGen/IRGenDebugInfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ class IRGenDebugInfo {
6969
llvm::DenseMap<TypeBase *, llvm::TrackingMDNodeRef> DITypeCache;
7070
llvm::StringMap<llvm::TrackingMDNodeRef> DIModuleCache;
7171
TrackingDIRefMap DIRefMap;
72-
llvm::SmallPtrSet<const llvm::DIType *, 16> IndirectEnumCases;
7372

7473
llvm::BumpPtrAllocator DebugInfoNames;
7574
StringRef CWDName; /// The current working directory.

0 commit comments

Comments
 (0)