Skip to content

Commit 0bcb2fb

Browse files
committed
SILOptimizer: Remove a dead function
1 parent f3a4f69 commit 0bcb2fb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/SILOptimizer/UtilityPasses/ValueOwnershipKindDumper.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@
2323

2424
using namespace swift;
2525

26-
static void checkEnumInstIsTrivial(EnumInst *EI) {
27-
if (!EI->hasOperand())
28-
return;
29-
30-
if (EI->getOperand()->getType().isTrivial(EI->getModule()))
31-
return;
32-
33-
llvm_unreachable("Found enum with non-trivial operand but trivial ownership?!");
34-
}
35-
3626
namespace {
3727

3828
class ValueOwnershipKindDumper : public SILFunctionTransform {

0 commit comments

Comments
 (0)