mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sil] Add support for the destructure_{struct,tuple} instructions.
rdar://31521023
This commit is contained in:
committed by
Michael Gottesman
parent
6df5462ee2
commit
36a8d0d5c0
@@ -243,6 +243,14 @@ ValueOwnershipKind::ValueOwnershipKind(StringRef S) {
|
||||
Value = Result.getValue();
|
||||
}
|
||||
|
||||
ValueOwnershipKind
|
||||
ValueOwnershipKind::getProjectedOwnershipKind(SILModule &M,
|
||||
SILType Proj) const {
|
||||
if (Proj.isTrivial(M))
|
||||
return ValueOwnershipKind::Trivial;
|
||||
return *this;
|
||||
}
|
||||
|
||||
ValueOwnershipKind SILValue::getOwnershipKind() const {
|
||||
// Once we have multiple return values, this must be changed.
|
||||
sil::ValueOwnershipKindClassifier Classifier;
|
||||
|
||||
Reference in New Issue
Block a user