mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
StackNesting: fix a corner case crash related to unreachable blocks
When deallocs are inserted at block boundaries, it's necessary to recompute the data flow. rdar://problem/55249524
This commit is contained in:
@@ -155,10 +155,13 @@ private:
|
||||
return bitNumberForAlloc(AllocInst);
|
||||
}
|
||||
|
||||
/// Insert deallocations at block boundaries.
|
||||
Changes insertDeallocsAtBlockBoundaries();
|
||||
|
||||
/// Modifies the SIL to end up with a correct stack nesting.
|
||||
///
|
||||
/// Returns the status of what changes were made.
|
||||
Changes adaptDeallocs();
|
||||
bool adaptDeallocs();
|
||||
};
|
||||
|
||||
} // end namespace swift
|
||||
|
||||
Reference in New Issue
Block a user