Files
swift-mirror/test/Interpreter/switch.swift
Michael Gottesman ade2df1253 [silgen] Fix SILGenBuilder::emitDestructureValueOperation to create all sub-ManagedValues before invoking the user defined function.
This is necessary since our func may want to emit conditional code with an early
exit, emitting unused cleanups from the current scope via the function
emitBranchAndCleanups(). If we have not yet created those cleanups, we will
introduce a leak along that path.

rdar://49990484
2019-04-26 12:27:06 -07:00

5.6 KiB