Commit Graph

3 Commits

Author SHA1 Message Date
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Kevin Ballard
c08440394a [SILGen] Handle #function in defer blocks correctly
Using `#function` in a `defer` block should return the enclosing
function name rather than the string `$defer()`.

Fixes SR-819.
2016-02-29 15:06:11 -08:00
Jordan Rose
76cf1781df [SILGen] Emit all TopLevelCodeDecls in a single scope.
This gets the cleanups right, which is important for the 'locals' that
come from top-level guard statements as well as top-level defer statements.
The former could lead to accessing destroyed memory.

rdar://problem/22064894

Swift SVN r30811
2015-07-30 19:47:54 +00:00