yaxunl marked an inline comment as done.
yaxunl added inline comments.

================
Comment at: lib/Sema/SemaType.cpp:6974
 
+  if (state.getSema().getLangOpts().OpenCL && !hasOpenCLAddressSpace &&
+      type.getAddressSpace() == LangAS::Default &&
----------------
Anastasia wrote:
> I am not very convinced we need to do all this check really... I think since 
> we have to live with this code further and maintain it let's try to simplify 
> it a bit. This can also help us avoid redundant checks. Perhaps we could even 
> move it out in a separate function?
> 
> How about some sort of hierarchical check structure like:
> 
> | |**CL version?** ||
> |<2.0||>=2.0|
> |`private`||**Type?**||
> ||pointer||non-pointer|
> ||`generic`||**Scope?**||
> |||program||function|
> |||`global`||**Qualifiers?**|
> ||||none||static/extern|
> ||||`private`||`global`|
> 
fixed.


https://reviews.llvm.org/D35082



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to