Commits

Erik Eckstein committed 84565932c6f
SILOptimizer: fixed bugs which cause memory leaks. *) cast optimizer: when a bridging cast is replaced with a function call and the owning convention of the instruction and the call parameter do not match, compensating retain/release instructions must be inserted. *) cast optimizer: when a consuming dead cast instruction is removed a compensating release instruction must be inserted *) mem2reg: An alloc_stack location which contains a destroy_addr must not be considered as a write-only location. The destroy_addr must be preserved. rdar://problem/27601057