[lld] r220730 - TMP: fix readN & writeN to not encourage UB
Tim Northover
t.p.northover at gmail.com
Mon Oct 27 17:26:36 PDT 2014
> TMP: fix readN & writeN to not encourage UB
Bother, forgot to edit the commit message. This isn't actually TMP.
The original problem was that pointers were being cast to uint32_t*
and dereferenced without any regard for alignment (let alone TBAA).
This should fix the obvious cases, but I still wouldn't necessarily
guarantee we've got it right.
See D5811 for some more details.
Tim.
More information about the llvm-commits
mailing list