Bug 190322 - [WHLSL] nullptr doesn't have a preferred address space
Summary: [WHLSL] nullptr doesn't have a preferred address space
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 176199
  Show dependency treegraph
 
Reported: 2018-10-05 13:19 PDT by Myles C. Maxfield
Modified: 2018-10-13 14:49 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2018-10-05 13:19:41 PDT
In the standard library, we have many pieces like

void foo(thread int*);
void foo(device int*);
void foo(threadgroup int*);

if you say foo(nullptr), you get a compile error because it doesn't know which address space nullptr prefers.
Comment 1 Myles C. Maxfield 2018-10-13 14:22:50 PDT
Migrated to https://api.github.com/repos/gpuweb/WHLSL/issues/16
Comment 2 Myles C. Maxfield 2018-10-13 14:49:14 PDT
https://github.com/gpuweb/WHLSL/issues/16