llvm-project
337fed35 - [Clang] Fix EmitAggregateCopy assertion for non-trivially-copyable sr… (#185091)

Commit
50 days ago
[Clang] Fix EmitAggregateCopy assertion for non-trivially-copyable sr… (#185091) …et types Fix for buildbot crash on #183639 The UseTemp path in AggExprEmitter::withReturnValueSlot copies back via EmitAggregateCopy, which asserts that the type has a trivial copy/move constructor or assignment operator. Gate the DestASMismatch condition on isTriviallyCopyableType so that non-trivially-copyable types (e.g. std::exception_ptr) fall through to the addrspacecast path instead. Fix buildbot crash: https://lab.llvm.org/buildbot/#/builders/73/builds/19803
Author
Parents
Loading