Commit Graph

56 Commits

Author SHA1 Message Date
Joe Groff
22f0e39ef2 Remove the -enable-pointer-conversions flag and dead code.
Swift SVN r19278
2014-06-26 23:56:59 +00:00
Joe Groff
6fb8e7519d SIL: AutoreleasingUnsafePointer doesn't need to be bridged anymore.
Swift SVN r19236
2014-06-26 16:03:03 +00:00
Joe Groff
fc13ea5ed0 SIL/IRGen: Allow unowned/unmanaged storage to be optional at the SIL level.
Allow @sil_unowned and @sil_unmanaged types to be optional. The sema for 'unowned' is a bit of a mess, and I'm not sure how to fix that right away. This is necessary in order for the unmanaged writeback for an AutoreleasingUnsafePointer<NSError?> or similar to compile correctly.

Swift SVN r19148
2014-06-24 22:38:00 +00:00
Joe Groff
0db8de1341 SILGen: Implement inout-to-pointer conversion.
For writeback through an AutoreleasingUnsafePointer, create an intrinsic AutoreleasingWritebackComponent we can append to lvalues.

Swift SVN r19134
2014-06-24 15:11:41 +00:00
Joe Groff
ccd8cca9bd SILGen: Implement array-to-pointer conversion.
Use the _convert*ArrayToPointerArgument stdlib helpers.

Swift SVN r19112
2014-06-24 01:09:10 +00:00
Joe Groff
954f746b92 SILGen: Implement pointer-to-pointer conversions.
Perform pointer-to-pointer argument conversions with the help of the _convertPointerToPointerArgument stdlib helper function.

Swift SVN r19105
2014-06-23 23:22:02 +00:00