File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed
lib/SILOptimizer/UtilityPasses Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change 23
23
24
24
using namespace swift ;
25
25
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
-
36
26
namespace {
37
27
38
28
class ValueOwnershipKindDumper : public SILFunctionTransform {
Original file line number Diff line number Diff line change 2
2
// RUN: %target-swift-frontend %clang-importer-sdk %S/Inputs/inlinable_bitfields_other.swift -emit-module -emit-module-path %t/inlinable_bitfields_other.swiftmodule
3
3
// RUN: %target-swift-frontend %clang-importer-sdk -I %t %s -emit-ir -disable-llvm-optzns -O | %FileCheck %s -DINT=i%target-ptrsize
4
4
5
- // rdar://46486435
6
- // REQUIRES: CPU=x86_64
7
-
8
5
import inlinable_bitfields_other
9
6
10
7
public func g( _ m: MM ) -> UInt32 {
You can’t perform that action at this time.
0 commit comments