Hacker News new | ask | show | jobs
by immibis 202 days ago
UB doesn't exist in the processor (it does, but not here). If the compiler knows the pointer is aligned it can do the transformation.
1 comments

For the compiler to know the pointer is aligned it would have to actually be aligned and there is no guarantee that it is.