File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6094,7 +6094,8 @@ class UncheckedOwnershipConversionInst
6094
6094
6095
6095
public:
6096
6096
ValueOwnershipKind getConversionOwnershipKind () const {
6097
- return SILInstruction::Bits.UncheckedOwnershipConversionInst .Kind ;
6097
+ unsigned kind = SILInstruction::Bits.UncheckedOwnershipConversionInst .Kind ;
6098
+ return ValueOwnershipKind (kind);
6098
6099
}
6099
6100
};
6100
6101
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ struct ValueOwnershipKind {
123
123
" ownership value?!" );
124
124
125
125
ValueOwnershipKind (innerty NewValue) : Value(NewValue) {}
126
- ValueOwnershipKind (unsigned NewValue) : Value(innerty(NewValue)) {}
126
+ explicit ValueOwnershipKind (unsigned NewValue) : Value(innerty(NewValue)) {}
127
127
ValueOwnershipKind (SILModule &M, SILType Type,
128
128
SILArgumentConvention Convention);
129
129
You can’t perform that action at this time.
0 commit comments