Support ownershipKind in SILSSAUpdater

This commit is contained in:
Meghana Gupta
2021-01-18 18:23:47 -08:00
parent 341facf0b3
commit 845e63f901
11 changed files with 30 additions and 17 deletions

View File

@@ -131,7 +131,7 @@ static void updateSSAForUseOfValue(
assert(Res->getType() == MappedValue->getType() && "The types must match");
insertedPhis.clear();
updater.initialize(Res->getType());
updater.initialize(Res->getType(), Res.getOwnershipKind());
updater.addAvailableValue(Header, Res);
updater.addAvailableValue(EntryCheckBlock, MappedValue);