[clang] [AMDGPU] Synthetic return coerce for aggregates with empty-for-layout members. (PR #197004)

Abid Qadeer via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 10 08:27:30 PDT 2026


================
@@ -21,6 +25,94 @@ using namespace clang::CodeGen;
 
 namespace {
 
+/// True if \p Ty is a record whose fields (or bases) include a field that
----------------
abidh wrote:

Thanks for the review. I have added some more tests that cover additional code paths. I am not sure we have a pre-existing code that exactly does what we need. Please see the comments [here](https://github.com/llvm/llvm-project/pull/96422#issuecomment-2887229576) and [here](https://github.com/llvm/llvm-project/pull/96422#issuecomment-2887305147) which motivated this work.

https://github.com/llvm/llvm-project/pull/197004


More information about the cfe-commits mailing list