[PATCH] D110927: [analyzer] Access stored value of a constant array through a pointer to another type
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 1 07:20:06 PDT 2021
steakhal added a subscriber: shafik.
steakhal added a comment.
I'm pretty sure that `int x4 = ((char*)arr)[1];` is supposed to be valid in your summary.
I think it's allowed by the standard to access any valid object via a `char*` - according to the strict aliasing rule.
@shafik WDYT?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110927/new/
https://reviews.llvm.org/D110927
More information about the cfe-commits
mailing list