]> granicus.if.org Git - clang/commit
[OPENCL] Fix wrongly vla error for OpenCL array.
authorXiuli Pan <xiulipan@outlook.com>
Tue, 7 Jun 2016 03:13:39 +0000 (03:13 +0000)
committerXiuli Pan <xiulipan@outlook.com>
Tue, 7 Jun 2016 03:13:39 +0000 (03:13 +0000)
commit9a7212e1e87f1396952d74f8c62314a775ccbb1c
treea8da3ca9a1e8a9825476cc1c341eb68037102d5f
parentf962670a08ef14c8bc5eeeb991078593e0c2ae20
[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.

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@271971 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
lib/Sema/SemaType.cpp
test/CodeGenOpenCL/vla.cl [new file with mode: 0644]