Skip to content

[DirectX] assertion during memcpy expansion with struct with a struct field #160773

@spall

Description

@spall
struct B {
  double L;
};

struct A{
  B C;
};

// Derived Struct truncate to scalar
export double call9(A A) {
  B B = A.C;
  return B.L;
}
emitMemcpyExpansion(llvm::IRBuilder<>&, llvm::Value*, llvm::Value*, llvm::ConstantInt*): Assertion `DstArrTy && "Expected Dst of memcpy to be a Pointer to an Array Type"' failed.

https://godbolt.org/z/7jv9scn81

Metadata

Metadata

Assignees

Type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions