Skip to content

Commit 683c590

Browse files
authored
Merge pull request swiftlang#21109 from slavapestov/small-nits
Fix a couple of small nits
2 parents f98b617 + 0bcb2fb commit 683c590

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
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 {

test/ClangImporter/inlinable_bitfields.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// RUN: %target-swift-frontend %clang-importer-sdk %S/Inputs/inlinable_bitfields_other.swift -emit-module -emit-module-path %t/inlinable_bitfields_other.swiftmodule
33
// RUN: %target-swift-frontend %clang-importer-sdk -I %t %s -emit-ir -disable-llvm-optzns -O | %FileCheck %s -DINT=i%target-ptrsize
44

5-
// rdar://46486435
6-
// REQUIRES: CPU=x86_64
7-
85
import inlinable_bitfields_other
96

107
public func g(_ m: MM) -> UInt32 {

0 commit comments

Comments
 (0)