[PATCH] D89055: [analyzer] Wrong type cast occures during pointer dereferencing after type punning
Denys Petrov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 15:29:36 PDT 2020
ASDenysPetrov added a comment.
@NoQ
> Can we collapse this function further towards this goal? Say, why not pump every region unconditionally through castRegion()? Does dispatchCast() use castRegion() internally - and if it does, why are there so many branches in this function?
I've made some investigations. `castRegion()` does not use inside `dispatchCast()`, it belongs to `StoreManager`. Moving it to `SimpleSValBuilder` will be hard at least for now, since it is quite complex, but we can try. What do you think. Should I go further or we can apply this patch as is?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89055/new/
https://reviews.llvm.org/D89055
More information about the cfe-commits
mailing list