[clang] [Clang][objectsize] Generate object size calculation for sub-objects (PR #86858)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 25 17:39:08 PDT 2024
efriedma-quic wrote:
I agree you want to look through some casts... but I'd like to see a check of `getCastKind()` to ensure the cast you're looking through is a cast you're expecting to see. Skipping over CK_BitCast should be fine; I'm concerned you'll end up skipping over something that actually affects the pointer value like CK_DerivedToBase.
https://github.com/llvm/llvm-project/pull/86858
More information about the cfe-commits
mailing list