Bail out of ossa rauw for move only values

This commit is contained in:
Meghana Gupta
2023-12-15 13:37:37 -08:00
parent 40d8f34b91
commit ce242691a6
2 changed files with 6 additions and 0 deletions

View File

@@ -386,6 +386,11 @@ bool OwnershipRAUWHelper::hasValidRAUWOwnership(SILValue oldValue,
if (m->getStage() == SILStage::Raw)
return false;
// OSSA rauw can create copies. Bail out if we have move only values.
if (newValue->getType().isMoveOnly()) {
return false;
}
return true;
}