[cfe-commits] [PATCH] OpenCL error for elements in a struct with different addr spaces
John McCall
rjmccall at apple.com
Thu Jun 14 11:38:59 PDT 2012
On Jun 13, 2012, at 1:13 PM, Tanya Lattner wrote:
> OpenCL does not allow elements of a struct to be in different address spaces. The attached patch checks for this and throws an error. It includes a test case.
>
> Please review.
This is very strange. Why does OpenCL allow elements of a struct to have an address space at all? Is this just a way to say that the struct itself is always in some address space?
John.
More information about the cfe-commits
mailing list