Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

nullptr doesn't have a preferred address space #16

Closed
litherum opened this issue Oct 13, 2018 · 0 comments
Closed

nullptr doesn't have a preferred address space #16

litherum opened this issue Oct 13, 2018 · 0 comments

Comments

@litherum
Copy link
Contributor

Migrated from https://bugs.webkit.org/show_bug.cgi?id=190322:

At 2018-10-05T20:19:41Z, mmaxfield@apple.com wrote:
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.

@litherum litherum changed the title [WHLSL] nullptr doesn't have a preferred address space nullptr doesn't have a preferred address space Oct 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant