Skip to content

Commit 033be47

Browse files
[NFC] Change ValueOwnershipKind::Any to ValueOwnershipKind::None in comments. (swiftlang#27925)
Follow-up to PR swiftlang#27879.
1 parent 77135a9 commit 033be47

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/swift/SIL/SILValue.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ struct ValueOwnershipKind {
181181
/// that the two ownership kinds are "compatibile".
182182
///
183183
/// The reason why we do not compare directy is to allow for
184-
/// ValueOwnershipKind::Any to merge into other forms of ValueOwnershipKind.
184+
/// ValueOwnershipKind::None to merge into other forms of ValueOwnershipKind.
185185
bool isCompatibleWith(ValueOwnershipKind other) const {
186186
return merge(other).hasValue();
187187
}
@@ -449,7 +449,7 @@ struct OperandOwnershipKindMap {
449449

450450
/// Return the OperandOwnershipKindMap that tests for compatibility with
451451
/// ValueOwnershipKind kind. This means that it will accept a element whose
452-
/// ownership is ValueOwnershipKind::Any.
452+
/// ownership is ValueOwnershipKind::None.
453453
static OperandOwnershipKindMap
454454
compatibilityMap(ValueOwnershipKind kind, UseLifetimeConstraint constraint) {
455455
OperandOwnershipKindMap set;

lib/ParseSIL/ParseSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5319,7 +5319,7 @@ bool SILParser::parseSILBasicBlock(SILBuilder &B) {
53195319

53205320
BB = getBBForDefinition(BBName, NameLoc);
53215321
// For now, since we always assume that PhiArguments have
5322-
// ValueOwnershipKind::Any, do not parse or do anything special. Eventually
5322+
// ValueOwnershipKind::None, do not parse or do anything special. Eventually
53235323
// we will parse the convention.
53245324
bool IsEntry = BB->isEntry();
53255325

lib/SILOptimizer/Mandatory/OwnershipModelEliminator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ static bool stripOwnership(SILFunction &F) {
318318
OwnershipModelEliminatorVisitor Visitor(B);
319319

320320
for (auto &BB : F) {
321-
// Change all arguments to have ValueOwnershipKind::Any.
321+
// Change all arguments to have ValueOwnershipKind::None.
322322
for (auto *Arg : BB.getArguments()) {
323323
Arg->setOwnershipKind(ValueOwnershipKind::None);
324324
}

0 commit comments

Comments
 (0)