[sil] Rename ValueOwnershipKind::{Any,None}

This commit is contained in:
Michael Gottesman
2019-10-24 23:56:05 -07:00
parent d6117a43b7
commit 26a734e58e
35 changed files with 384 additions and 390 deletions

View File

@@ -472,7 +472,7 @@ destroyFoldedValueAtEndOfUse(SILValue foldedVal, SILValue originalVal,
SILFunction *fun) {
// Folded value should have either trivial or owned ownership as it is an
// integer or string constant.
assert(foldedVal.getOwnershipKind() == ValueOwnershipKind::Any ||
assert(foldedVal.getOwnershipKind() == ValueOwnershipKind::None ||
foldedVal.getOwnershipKind() == ValueOwnershipKind::Owned);
// If the ownership kinds of folded and original values are both either