summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2014-02-06 03:49:11 +0000
committerSerge Pavlov <sepavloff@gmail.com>2014-02-06 03:49:11 +0000
commitce4dc26cf4bf36fbb93d5ca3b8ae38f82c921396 (patch)
tree7c7a888467dc5705a190de0640998379c53cbae8 /lib/CodeGen/CGExprComplex.cpp
parent8eacc54b2b06d3f0a998ec3adecaf890c7a25fb6 (diff)
downloadclang-ce4dc26cf4bf36fbb93d5ca3b8ae38f82c921396.tar.gz
clang-ce4dc26cf4bf36fbb93d5ca3b8ae38f82c921396.tar.bz2
clang-ce4dc26cf4bf36fbb93d5ca3b8ae38f82c921396.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions