[PATCH] Fix assertion failure when a member is given an address space.

Matt Arsenault Matthew.Arsenault at amd.com
Thu Feb 21 11:14:41 PST 2013


  That is what this prevents for OpenCL. All members have the same address space because the aggregate's address space is what's specified, not for each individual field. AMD OpenCL at least already rejects fields with specified address spaces.

  6.5 says "The address space qualifier may be used in variable declarations to specify the region of memory that is used to allocate the object." As the definition of the member of the aggregate type is not a variable, it shouldn't accept it.

http://llvm-reviews.chandlerc.com/D444



More information about the cfe-commits mailing list