Skip to content

Commit 8617a5d

Browse files
committed
[SIL] Marked @in_constant as owned.
Matches the behavior of the memory lifetime verifier (and OperandOwnership which was updated to match the memory lifetime verify at 65fe910).
1 parent e1cb0b5 commit 8617a5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/SILArgumentConvention.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ struct SILArgumentConvention {
9494
bool isOwnedConvention() const {
9595
switch (Value) {
9696
case SILArgumentConvention::Indirect_In:
97+
case SILArgumentConvention::Indirect_In_Constant:
9798
case SILArgumentConvention::Direct_Owned:
9899
return true;
99100
case SILArgumentConvention::Indirect_In_Guaranteed:
100101
case SILArgumentConvention::Direct_Guaranteed:
101102
case SILArgumentConvention::Indirect_Inout:
102-
case SILArgumentConvention::Indirect_In_Constant:
103103
case SILArgumentConvention::Indirect_Out:
104104
case SILArgumentConvention::Indirect_InoutAliasable:
105105
case SILArgumentConvention::Direct_Unowned:

0 commit comments

Comments
 (0)