mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[move-only] Teach deinit devirtualization how to handle devirtualizing a deinit of a resilient type.
Specifically, such a type has an @in convention for its deinit and the pass was setup expecting self to always be @owned. rdar://109904633
This commit is contained in:
@@ -371,6 +371,11 @@ public:
|
||||
return getNumIndirectSILResults();
|
||||
}
|
||||
|
||||
/// Returns the index of self.
|
||||
unsigned getSILArgIndexOfSelf() const {
|
||||
return getSILArgIndexOfFirstParam() + getNumParameters() - 1;
|
||||
}
|
||||
|
||||
/// Get the index into formal indirect results corresponding to the given SIL
|
||||
/// indirect result argument index.
|
||||
unsigned getIndirectFormalResultIndexForSILArg(unsigned argIdx) const {
|
||||
|
||||
Reference in New Issue
Block a user