[llvm-bugs] [Bug 34143] Hardfault when dereferencing unaligned float
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 10 08:11:12 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34143
Tim Northover <t.p.northover at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Tim Northover <t.p.northover at gmail.com> ---
This code violates strict-aliasing and alignment requirements and so has
undefined behaviour. The most portable way to do this kind of type punning is
via a memcpy to a local inside the Read function.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170810/7e6aa226/attachment.html>
More information about the llvm-bugs
mailing list