]> granicus.if.org Git - clang/commit
Merging r369251:
authorHans Wennborg <hans@hanshq.net>
Wed, 21 Aug 2019 07:33:40 +0000 (07:33 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 21 Aug 2019 07:33:40 +0000 (07:33 +0000)
commit20170d09023b802bdb378f8c65c78742d0a0ca74
tree09a81376aa7671a307d791b7b1a8bd314f92c657
parent116ea3bb7a5fadc78fec76e9449013902bf19242
Merging r369251:
------------------------------------------------------------------------
r369251 | stulova | 2019-08-19 13:43:16 +0200 (Mon, 19 Aug 2019) | 10 lines

[OpenCL] Fix addr space deduction for pointers/references to arrays.

Rewrite the logic for detecting if we are deducing addr space of
a pointee type to take into account special logic for arrays. For
pointers/references to arrays we can have any number of parentheses
expressions as well as nested pointers.

Differential Revision: https://reviews.llvm.org/D66137

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_90@369499 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp
test/SemaOpenCLCXX/address-space-deduction.cl