[clang] [Clang] Fix invalid sret addrspacecast for placement new on HIP (PR #183639)

Kewen Meng via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 6 11:05:18 PST 2026


Kewen12 wrote:

Hello, our buildbot was broken that seems related to this PR. Could you please take a look? Thanks!

bot: https://lab.llvm.org/buildbot/#/builders/73/builds/19803
```
clang++: /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/clang/lib/CodeGen/CGExprAgg.cpp:2252: void clang::CodeGen::CodeGenFunction::EmitAggregateCopy(clang::CodeGen::LValue, clang::CodeGen::LValue, clang::QualType, clang::CodeGen::AggValueSlot::Overlap_t, bool): Assertion `(Record->hasTrivialCopyConstructor() || Record->hasTrivialCopyAssignment() || Record->hasTrivialMoveConstructor() || Record->hasTrivialMoveAssignment() || Record->hasAttr<TrivialABIAttr>() || Record->isUnion()) && "Trying to aggregate-copy a type without a trivial copy/move " "constructor or assignment operator"' failed.
```

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


More information about the cfe-commits mailing list