mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
According to the documentation, ``` It's ok if postDomBlocks has duplicates or extraneous blocks, as long as they jointly post-dominate all live blocks that aren't on dead-end paths. ``` Previously, though, duplicates resulted in trapping: each element of `postDomBlocks` is pushed into a `BasicBlockWorklist`; when the second occurrence of an element in `postDomBlocks` was encountered, `BasicBlockWorklist::push` would trigger an assertion failure. Here, `pushIfNotVisited` is called instead.
42 KiB
42 KiB