Commits

Slava Pestov committed e72caad3d7c
Runtime: Fix problems with nil-to-nil casts We have a special rule that Optional<T>.none successfully dynamically casts to Optional<U>.none for any T and U. However the implementation was incorrect if the source and destination types had a different size. We would initialize the source to nil, and then copy to the result. The correct implementation is to initialize the result using the result payload type directly, and not call _succeed() at all. Fixes <https://bugs.swift.org/browse/SR-1056>.