Skip to content

Commit 939ae01

Browse files
authored
Merge pull request swiftlang#35408 from eeckstein/remove-deb-api
SILOptimizer: remove the unused DeadEndBlocks::empty() API
2 parents a8f1deb + 9ee3797 commit 939ae01

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/swift/SIL/BasicBlockUtils.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,6 @@ class DeadEndBlocks {
8181
return ReachableBlocks.count(block) == 0;
8282
}
8383

84-
bool empty() {
85-
if (!isComputed) {
86-
// Lazily compute the dataflow.
87-
compute();
88-
isComputed = true;
89-
}
90-
return ReachableBlocks.empty();
91-
}
92-
9384
const SILFunction *getFunction() const { return F; }
9485
};
9586

0 commit comments

Comments
 (0)