Issue 160773
Summary [DirectX] assertion during memcpy expansion with struct with a struct field
Labels backend:DirectX
Assignees
Reporter 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
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to