diff options
| author | Serge Pavlov <sepavloff@gmail.com> | 2014-02-06 03:49:11 +0000 |
|---|---|---|
| committer | Serge Pavlov <sepavloff@gmail.com> | 2014-02-06 03:49:11 +0000 |
| commit | 774c6d03b2b0a0bf20c017756c988e7ad5747953 (patch) | |
| tree | 7da5aafc845c9473e92a447c6780d53a10692764 /llvm/test/CodeGen/Generic/2008-02-04-ExtractSubvector.ll | |
| parent | d461244972ebab3bdfaaadbea212ed755c97adf1 (diff) | |
| download | bcm5719-llvm-774c6d03b2b0a0bf20c017756c988e7ad5747953.tar.gz bcm5719-llvm-774c6d03b2b0a0bf20c017756c988e7ad5747953.zip | |
Allow transformation of VariableArray to ConstantArray.
In the following code:
struct A { static const int sz; };
template<class T> void f() { T arr[A::sz]; }
the array 'arr' is represented as a variable size array in the template.
If 'A::sz' gets value below in the translation unit, the array in
instantiation can turn into constant size array.
This change fixes PR18633.
Differential Revision: http://llvm-reviews.chandlerc.com/D2688
llvm-svn: 200899
Diffstat (limited to 'llvm/test/CodeGen/Generic/2008-02-04-ExtractSubvector.ll')
0 files changed, 0 insertions, 0 deletions

