[PATCH] D38857: [OpenCL] Improve printing and semantic check related to implicit addr space
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 12 11:41:46 PDT 2017
yaxunl created this revision.
There are two issues:
1. only (void*)0 should be treated as nullptr
2. only explicit addr space should be printed
This patch introduces a flag in Qualifier to indicating a non-default address space qualifier is deduced by context. Only
non-implicit address space qualifier will be print out when printing AST. It is also used to identify nullptr.
However this review does not rule out alternative approaches, e.g. using AttributedType. We will explore alternative approaches.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 37416 bytes
Desc: not available
More information about the cfe-commits