Commits

Joe Groff committed f20d16adc8d
SILGen: Forward archetypes into local function contexts. If a closure appears in a generic function, the standalone function type for the SIL function needs to include not only the captured values from the outer context, but the generic parameters from the outer context as well. In order to maintain SIL invariants we then need to hand generic parameters from the outer function to the inner closure using a SpecializeInst before partially apply the inner function to create the closure object. Swift SVN r5424