Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: