Commit Graph

4 Commits

Author SHA1 Message Date
Max Moiseev
08e1e4a043 Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-01-11 16:51:11 -08:00
Jesse Rusak
30224016c5 [SR-392][Runtime] Avoid overrelease when failing cast to protocol
Fixes a regression introduced in e09027ca which causes us to release
the wrong value when a cast fails.
2016-01-08 19:02:37 -05:00
Erik Eckstein
9c25ce1a75 tests: add a few more import statements to workaround linker errors 2016-01-08 15:08:56 -08:00
Jesse Rusak
2aaa4846e8 [SR-426][Runtime] Use _fail to ensure src is deallocated in cast
This case was previously ignoring the DestroyOnFailure flag, so
we had a leak if a cast to an existential metatype failed for
certain types (tuples, structs, etc).
2016-01-03 15:07:34 -05:00