google / google/clspv

Crash with structures containing generic pointers

Open
#1,354 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.