mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Bail out of ossa rauw for move only values
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user