File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ struct ValueOwnershipKind {
181
181
// / that the two ownership kinds are "compatibile".
182
182
// /
183
183
// / 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.
185
185
bool isCompatibleWith (ValueOwnershipKind other) const {
186
186
return merge (other).hasValue ();
187
187
}
@@ -449,7 +449,7 @@ struct OperandOwnershipKindMap {
449
449
450
450
// / Return the OperandOwnershipKindMap that tests for compatibility with
451
451
// / ValueOwnershipKind kind. This means that it will accept a element whose
452
- // / ownership is ValueOwnershipKind::Any .
452
+ // / ownership is ValueOwnershipKind::None .
453
453
static OperandOwnershipKindMap
454
454
compatibilityMap (ValueOwnershipKind kind, UseLifetimeConstraint constraint) {
455
455
OperandOwnershipKindMap set;
Original file line number Diff line number Diff line change @@ -5319,7 +5319,7 @@ bool SILParser::parseSILBasicBlock(SILBuilder &B) {
5319
5319
5320
5320
BB = getBBForDefinition (BBName, NameLoc);
5321
5321
// 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
5323
5323
// we will parse the convention.
5324
5324
bool IsEntry = BB->isEntry ();
5325
5325
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ static bool stripOwnership(SILFunction &F) {
318
318
OwnershipModelEliminatorVisitor Visitor (B);
319
319
320
320
for (auto &BB : F) {
321
- // Change all arguments to have ValueOwnershipKind::Any .
321
+ // Change all arguments to have ValueOwnershipKind::None .
322
322
for (auto *Arg : BB.getArguments ()) {
323
323
Arg->setOwnershipKind (ValueOwnershipKind::None);
324
324
}
You can’t perform that action at this time.
0 commit comments