https://github.com/NeKon69 commented:

Hey, thanks for your interest in LifetimeSafety.
Unfortunately, I don't think this is the correct solution for this problem. 
This patch just adds some more guessing to the whole analysis flow instead of 
solving the underlying issue that we can't currently detect when the whole 
object is invalidated and only the object's contents.
I also don't think that the chosen function is the correct location to put this 
fix, simply because `checkInvalidation` is designed to check whether 
invalidation happened or not given already produced facts, it shouldn't have 
any complicated logic to detect whether something is an MTE or a reference.
See: #222537, #186996, #207269 and similar which all report this problem.

https://github.com/llvm/llvm-project/pull/240003
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to