Commit Graph

3 Commits

Author SHA1 Message Date
Saleem Abdulrasool
8b21fdee96 SILGen: enable additional tests globally
Enable a number of SILGen tests to run on all targets.  This improves
coverage on non-Darwin targets.
2018-06-11 09:23:22 -07:00
Alex Hoppen
560c22b18e [tests] Verify the libSyntax tree on SILGen tests
The SILGen testsuite consists of valid Swift code covering most language
features. We use these tests to verify that no unknown nodes are in the
file's libSyntax tree. That way we will (hopefully) catch any future
changes or additions to the language which are not implemented in
libSyntax.
2018-04-27 09:33:03 -07:00
Joe Groff
f9c267c9ef SILGen: Accept optionals as ABI-compatible in either direction as block arguments.
The thunking code we have for introducing runtime nil checks in thunks when an optional-to-non conversion appears in contravariant position doesn't handle blocks. This somehow-worked in previous versions of Swift (maybe due to assertions being off). Spot fix for rdar://problem/36843476.
2018-01-26 14:37:40 -08:00