Commit Graph

103 Commits

Author SHA1 Message Date
Arnold Schwaighofer
e6d3580b6b Add missing null check 2018-04-16 12:52:01 -07:00
Arnold Schwaighofer
37ed76e2b4 Make some functions static 2018-04-13 13:29:46 -07:00
Arnold Schwaighofer
f82dbef1b7 Add a ClosureLifetimeFixup pass
To replace the code in DI and eventually remove PostponedCleanup in a
follow-up.

When SILGen emits ``convert_escape_to_noescape [not_guaranteed]
%operand`` instructions it assumes that a later SIL pass (this pass)
comes along and inserts retain_value/release_value instructions such that
the lifetime of the operand for the duration of the trivial closure
result.

This commit introduces the pass but does not yet use it.
2018-04-13 13:25:07 -07:00