Bug 199088
| Summary: | [WHLSL] Function with multiple return statements fail in the checker | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Saam Barati <saam> |
| Component: | WebGPU | Assignee: | Saam Barati <saam> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | dino, fpizlo, jonlee, justin_fan, mmaxfield, rmorisset |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 195681 | ||
Saam Barati
e.g,
```
struct Foo {
int x;
int y;
}
int foo(thread Foo* foo, uint index)
{
if (index == 0)
return foo->x;
return foo->y;
}
```
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Saam Barati
Please ignore, this was a case of not having "native bool operator==(uint, uint);" in the standard library.
:-(