Crash with structures containing generic pointers
Open
- Dominant language
- LLVM
- Stars
- 729
- Forks
- 110
- Avg merge
- 17h 51m
- Merged PRs (30d)
- 23
Description
The following code:
```cpp
typedef struct { float *data; } Data;
kernel void k(global float *data_out_raw) {
Data d {data_out_raw};
}
```
When compiled with `-cl-std=CLC++ -inline-entry-points` results in
```
Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file Instructions.cpp, line 3682.
```
Contributor guide
Assessment
This issue has not been assessed yet.