mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
FunctionOrder: consider destructor calls for destroy_value
We already do this for `strong_release` and `release_value`, but `destroy_value` was missing
This commit is contained in:
@@ -40,7 +40,8 @@ void BottomUpFunctionOrder::DFS(SILFunction *Start) {
|
||||
for (auto &B : *Start) {
|
||||
for (auto &I : B) {
|
||||
auto FAS = FullApplySite::isa(&I);
|
||||
if (!FAS && !isa<StrongReleaseInst>(&I) && !isa<ReleaseValueInst>(&I))
|
||||
if (!FAS && !isa<StrongReleaseInst>(&I) && !isa<ReleaseValueInst>(&I) &&
|
||||
!isa<DestroyValueInst>(&I))
|
||||
continue;
|
||||
|
||||
auto Callees = FAS ? BCA->getCalleeList(FAS)
|
||||
|
||||
Reference in New Issue
Block a user