Commits
Chris Lattner committed 160438e14ee
Fix <rdar://problem/18199087> DI doesn't catch use of super properties lexically inside super.init call When analyzing a super.init call, we have several instructions involved including an upcast to the parent type and an applyinst to call super.init. DI was using the location of the upcast as the point at which it modeled the super.init requirement, not at the point of the applyinst. This meant that code like: %x = upcast self to basetype ... stuff ... apply super.init(%x) would not catch invalid uses of super in the "stuff" range, because DI thought that super.init was called at the upcast. Fix this by using the apply as the super.init use, not the upcast. Swift SVN r22101