[PATCH] D20561: Warn when taking address of packed member

Kim Gräsman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 1 03:59:06 PST 2017

kimgr added a comment.

... and both revisions should be in the 4.0 branch (taken from r291814)

I was looking forward to this warning to help iron out alignment issues at compile-time instead of runtime (our ARM CPUs don't like unaligned access). @royger, can you expand a little on what you mean by

> For once, it doesn't really check whether the access is actually unaligned or no

? Isn't that exactly what it does? Or do you mean in relation to whether the target allows unaligned access or not?



More information about the cfe-commits mailing list