[LLVMdev] Target backend not converting char* to struct properly.

Eli Friedman eli.friedman at gmail.com
Fri Oct 12 13:26:41 PDT 2012

On Fri, Oct 12, 2012 at 1:17 PM, Stephen McGruer
<stephen.mcgruer at gmail.com> wrote:
> If you could point me towards the correct location in the standard I would
> appreciate that - I didn't realize it wasn't acceptable to turn pointer-data
> to structs. My example is reduced from the EEMBC benchmarks where I ran into
> the problem, so I may have reduced it too far by accident (but I'm fairly
> sure they do not use __attribute__ or similar). "A pointer to an object or incomplete type may be converted
to a pointer to a different object or incomplete type. If the
resulting pointer is not correctly aligned for the pointed-to type,
the behavior is undefined."


More information about the llvm-dev mailing list