We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd99f4d commit 4bba768Copy full SHA for 4bba768
lib/SIL/SILOwnershipVerifier.cpp
@@ -1097,6 +1097,10 @@ visitFullApply(FullApplySite apply) {
1097
return {true, UseLifetimeConstraint::MustBeLive};
1098
case ParameterConvention::Indirect_In_Guaranteed:
1099
case ParameterConvention::Direct_Guaranteed:
1100
+ // A +1 value may be passed to a guaranteed argument. From the caller's
1101
+ // point of view, this is just like a normal non-consuming use.
1102
+ // Direct_Guaranteed only accepts non-trivial types, but trivial types are
1103
+ // already handled above.
1104
return visitApplyParameter(ValueOwnershipKind::Any,
1105
UseLifetimeConstraint::MustBeLive);
1106
// The following conventions should take address types.
0 commit comments