swift
9f0375e3 - [silgenpattern] Only emit a shared case if we have a fallthrough/multiple cast items.

Commit
7 years ago
[silgenpattern] Only emit a shared case if we have a fallthrough/multiple cast items. There was a bug here where we were emitting a shared case if we had arguments. That is why we needed the hacked in deletion of that block when we emitted shared blocks. I was able to replace that with an assert to make sure that we do not regress. This additionally improved our code generation by eliminating a potential extra copy when we had such a case. That is where the test updates come from.
Author
Committer
Parents
Loading