[cast-opt] Eliminate a leak along the cast failure path when bridging from a swift to ns object derived class.
I added an interpreter test that exercises this code path using LifetimeTracked
to make sure we do not regress again.
rdar://49882071
(cherry picked from commit de021aa32b286cac6cae0c2ce53ce1e444eb9707)
Conflicts:
lib/SILOptimizer/Utils/CastOptimizer.cpp