mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILOptimizer: fix a stupid bug in StackNesting which can cause a miscompile in functions with unreachable blocks.
rdar://problem/47973577
This commit is contained in:
@@ -97,7 +97,7 @@ bool StackNesting::solve() {
|
||||
bool initVal = false;
|
||||
for (BlockInfo &BI : BlockInfos) {
|
||||
BI.AliveStackLocsAtEntry.resize(StackLocs.size(), initVal);
|
||||
initVal = false;
|
||||
initVal = true;
|
||||
}
|
||||
|
||||
// First step: do a forward dataflow analysis to get the live stack locations
|
||||
|
||||
Reference in New Issue
Block a user