[all-commits] [llvm/llvm-project] 337fed: [Clang] Fix EmitAggregateCopy assertion for non-tr...

Vigneshwar Jayakumar via All-commits all-commits at lists.llvm.org
Fri Mar 6 12:26:54 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 337fed353d771d3425d06393637fdc956097b51e
      https://github.com/llvm/llvm-project/commit/337fed353d771d3425d06393637fdc956097b51e
  Author: Vigneshwar Jayakumar <vigneshwar.jayakumar at amd.com>
  Date:   2026-03-06 (Fri, 06 Mar 2026)

  Changed paths:
    M clang/lib/CodeGen/CGExprAgg.cpp
    A clang/test/CodeGenHIP/sret-nontrivial-copyable.hip
    M clang/test/OpenMP/amdgcn_sret_ctor.cpp

  Log Message:
  -----------
  [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



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list