sfantao added inline comments.
================
Comment at: lib/Sema/SemaOpenMP.cpp:11377
@@ +11376,3 @@
+ // item should be a pointer or array
+ if (!Type.getNonReferenceType()->isPointerType()) {
+ Diag(ELoc, diag::err_omp_usedeviceptr_not_a_pointer)
----------------
ABataev wrote:
> You should not skip the reference from the type, references are not allowed
> also
Hi Alexey, I think the item can be a reference to a pointer. I couldn't find
that restriction in the spec, can you point me to what you are referring to?
We should probably refer to that in the preceding comment.
Thanks!
Repository:
rL LLVM
http://reviews.llvm.org/D21904
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits