mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Otherwise, we hit misc crashes. The worklist should have always been filtering these. I wonder why we have never hit this issue before. I added a new API that filters out type dependent uses called ValueBase::getNonTypeDependentUses() to make it easier to perform def->use worklist traversal ignoring these uses. This mirrors the APIs that we have created for filtering type dependent operands when performing use->def worklist traversal. I also noticed that we are not eliminating a load [copy] that we could in the test case. I am going to file a separate bug report for that work. rdar://79781943
6.1 KiB
6.1 KiB