Skip to content

Commit 64425c8

Browse files
committed
Remove dead code and an obsolete testcase.
The debug location is now unconditionally being set for each instruction, so resetting the location at the beginning of each basic block is redundant. <rdar://problem/25772716>
1 parent b41c939 commit 64425c8

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

lib/IRGen/IRGenSIL.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,14 +1632,6 @@ void IRGenSILFunction::visitSILBasicBlock(SILBasicBlock *BB) {
16321632
DominanceScope dominance(*this, InEntryBlock ? DominancePoint::universal()
16331633
: DominancePoint(BB));
16341634

1635-
// The basic blocks are visited in a random order. Reset the debug location.
1636-
std::unique_ptr<AutoRestoreLocation> ScopedLoc;
1637-
if (InEntryBlock)
1638-
ScopedLoc = llvm::make_unique<PrologueLocation>(IGM.DebugInfo, Builder);
1639-
else
1640-
ScopedLoc = llvm::make_unique<ArtificialLocation>(
1641-
CurSILFn->getDebugScope(), IGM.DebugInfo, Builder);
1642-
16431635
// Generate the body.
16441636
bool InCleanupBlock = false;
16451637
bool KeepCurrentLocation = false;

test/DebugInfo/bbentry-location.swift

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)