mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This involved fixing a few different bugs. 1. We were just performing dataflow by setting that only the initial block needs to be updated. This means that if there isn’t anything in the initial dataflow block, we won’t visit any successor blocks. Instead the correct thing to do here is to visit all blocks in the initial round. 2. I also needed to fix a separate issue where we were updating our union-find data structure incorrectly as found by an assert on transfernonsendable.swift that was triggered once I fixed 1. Put simply, we needed to set a new max label + 1 when our new max element is less than or equal to the old max label + 1… before we just did less than so if we had a new max element that is the same as our fresh label, we wouldn’t increment the fresh label. rdar://119584497
6 lines
64 B
Objective-C
6 lines
64 B
Objective-C
|
|
@interface MyNotificationCenter
|
|
- (id)init;
|
|
- (void)post;
|
|
@end
|