[llvm-bugs] [Bug 27255] NULL-based pointer arithmetic generates ud2
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 6 15:47:30 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27255
Sean Silva <chisophugis at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |chisophugis at gmail.com
Resolution|--- |INVALID
--- Comment #1 from Sean Silva <chisophugis at gmail.com> ---
I believe this is UB: http://stackoverflow.com/a/17979772
`(unsigned char *)(uintptr_t)(a)` should work though.
--
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/20160406/2cf0f52e/attachment.html>
More information about the llvm-bugs
mailing list