https://bugs.llvm.org/show_bug.cgi?id=34143
Tim Northover <t.p.northo...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Tim Northover <t.p.northo...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs