]> granicus.if.org Git - clang/commit
[OPENCL] Fix wrongly vla error for OpenCL array.
authorXiuli Pan <xiulipan@outlook.com>
Tue, 7 Jun 2016 04:34:00 +0000 (04:34 +0000)
committerXiuli Pan <xiulipan@outlook.com>
Tue, 7 Jun 2016 04:34:00 +0000 (04:34 +0000)
commitfd6ec60340ede7ee5513cef8d0c5db1cecd67dd4
tree5d56f38041f276de9fe5cec079f862f0b69fdcd7
parent3a29813c37bb1f027e849042e992c616d2c1f1b9
[OPENCL] Fix wrongly vla error for OpenCL array.

Summary:
OpenCL should support array with const value size length, those const
varibale in global and constant address space and variable in constant
address space.

Fixed test case error.

Reviewers: Anastasia, yaxunl, bader

Subscribers: bader, cfe-commits

Differential Revision: http://reviews.llvm.org/D20090

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271978 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
lib/Sema/SemaType.cpp
test/CodeGenOpenCL/vla.cl [new file with mode: 0644]