| commit | 99444cb86099d3bf60145d8fc1ddfa43522ea63e | [log] [tgz] |
|---|---|---|
| author | Yaxun Liu <Yaxun.Liu@amd.com> | Wed Aug 03 20:38:06 2016 +0000 |
| committer | Yaxun Liu <Yaxun.Liu@amd.com> | Wed Aug 03 20:38:06 2016 +0000 |
| tree | 20e70e29031d0fcf65d4d64f9dffa433c6be64d3 | |
| parent | 803568866c9e0d9049d731628ac0233591e7c8f6 [diff] |
[OpenCL] Fix size of image type The size of image type is reported incorrectly as size of a pointer to address space 0, which causes error when casting image type to pointers by __builtin_astype. The fix is to get image address space from TargetInfo then report the size accordingly. Differential Revision: https://reviews.llvm.org/D22927 llvm-svn: 277647