Anastasia added inline comments.

================
Comment at: lib/Sema/SemaExpr.cpp:7795
+        if (lhq.getAddressSpace() != rhq.getAddressSpace())
+          return Sema::IncompatibleNestedPointerDiscardsQualifiers;
+
----------------
I am wondering since the behavior is so specialized for the address spaces 
whether we should name this something like 
`IncompatibleNestedPointerAddressSpaceMismatch`.


================
Comment at: test/SemaOpenCL/address-spaces.cl:87
+
+  // FIXME: This doesn't seem right. This should be an error, not a warning.
+  __local int * __global * __private * lll;
----------------
Are we sure it has to be an error? May be we can change this wording to 
something like - unknown behavior that needs clarifying? Some similar text to 
your comment in the code.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58236/new/

https://reviews.llvm.org/D58236



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

Reply via email to