AZero13 wrote:

> How often does this appear in practice?  Normally, `NSObject` is implemented 
> in a shared library and it is completely valid in a non-fragile ABI for a 
> future version to have an extra ivar added (and, in the wild, we've seen 
> people do this for extra state in debug builds).
> 
> 
> 
> I implemented this optimisation for the GNU runtime 15-20 years ago, but we 
> stopped shipping it around ten or so years ago because the conditions that 
> made it sound were triggered only if people statically linked the Foundation 
> framework and did LTO, and that basically never happened.
> 
> 

WebKit does this so it is worth shipping for the Apple runtime at least.

Also there are cases in foundation where this happens

https://github.com/llvm/llvm-project/pull/126591
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to