File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
lib/SILOptimizer/SILCombiner Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1887,9 +1887,6 @@ SILInstruction *SILCombiner::visitCondBranchInst(CondBranchInst *CBI) {
1887
1887
}
1888
1888
1889
1889
SILInstruction *SILCombiner::visitSelectEnumInst (SelectEnumInst *SEI) {
1890
- if (SEI->getFunction ()->hasOwnership ())
1891
- return nullptr ;
1892
-
1893
1890
// Canonicalize a select_enum: if the default refers to exactly one case, then
1894
1891
// replace the default with that case.
1895
1892
if (SEI->hasDefault ()) {
Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ enum E {
106
106
}
107
107
108
108
// CHECK-LABEL: sil [ossa] @canonicalize_select_enum
109
- // XHECK : select_enum {{.*}} case #E.E2!enumelt:
110
- // XHECK : return
111
-
109
+ // CHECK : select_enum {{.*}} case #E.E2!enumelt:
110
+ // CHECK : return
111
+ // CHECK: } // end sil function 'canonicalize_select_enum'
112
112
sil [ossa] @canonicalize_select_enum : $@convention(thin) (E) -> Int32 {
113
113
bb0(%0 : $E):
114
114
%1 = integer_literal $Builtin.Int32, 0
You can’t perform that action at this time.
0 commit comments