Currently Clang allows partial initializer for C99 but not for OpenCL, e.g.
float a[16][16] = {1.0f, 2.0f};
is allowed in C99 but not allowed in OpenCL.
This patch fixes that.
Paths
| Differential D25335
[OpenCL] Allow partial initializer for array and struct ClosedPublic Authored by yaxunl on Oct 6 2016, 10:25 AM.
Details Summary Currently Clang allows partial initializer for C99 but not for OpenCL, e.g. float a[16][16] = {1.0f, 2.0f}; is allowed in C99 but not allowed in OpenCL. This patch fixes that.
Diff Detail
Event Timelineyaxunl updated this object. Anastasia edited edge metadata. Comment ActionsLGTM!
This revision is now accepted and ready to land.Oct 8 2016, 4:59 AM
Closed by commit rL283891: [OpenCL] Allow partial initializer for array and struct (authored by yaxunl). · Explain WhyOct 11 2016, 9:02 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 74266 cfe/trunk/lib/Sema/SemaInit.cpp
cfe/trunk/test/CodeGenOpenCL/partial_initializer.cl
|