philnik777 wrote:

IMO the right default alignment would be `alignof(*ptr)`. Objects are pretty 
much never underaligned, but they tend to not be overaliend unless you want 
something specific - at which point you can use `__builtin_assume_aligned` to 
inform the compiler that it can use higher alignment assumptions.

https://github.com/llvm/llvm-project/pull/156063
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to