Clang codegen emits unnecessary memcpy for C++ records without content. This patch fixes the issue.
See https://github.com/llvm/llvm-project/issues/59336
Please let me know if the patch is going into the right direction and has a change to get accepted. If yes, I'll finish it with test cases and also extend it to C. Currently, check-clang is not showing an error...