Bug 199088 - [WHLSL] Function with multiple return statements fail in the checker
Summary: [WHLSL] Function with multiple return statements fail in the checker
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
URL:
Keywords:
Depends on:
Blocks: 195681
  Show dependency treegraph
 
Reported: 2019-06-20 16:25 PDT by Saam Barati
Modified: 2019-06-20 16:35 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Saam Barati 2019-06-20 16:25:08 PDT
e.g,

```
struct Foo {
    int x;
    int y;
}


int foo(thread Foo* foo, uint index)
{
    if (index == 0)
        return foo->x;
    return foo->y;
}
```
Comment 1 Saam Barati 2019-06-20 16:35:02 PDT
Please ignore, this was a case of not having "native bool operator==(uint, uint);" in the standard library.

:-(