freebsd-skq/contrib/llvm
Dimitry Andric 279c613d4d Pull in r200899 from upstream clang trunk:
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

This fixes "Assertion failed: (T::isKind(*this)), function castAs"
errors, which can occur when building the security/quantis port.

Reported by:	ale
MFC after:	3 days
2014-02-09 20:52:47 +00:00
..
include Merge upstream LLVM r192118: 2013-11-11 19:06:12 +00:00
lib Pull in r195679 from upstream llvm trunk: 2014-01-25 16:35:56 +00:00
tools Pull in r200899 from upstream clang trunk: 2014-02-09 20:52:47 +00:00
utils/TableGen Upgrade our copy of llvm/clang to 3.3 release. 2013-06-12 18:48:53 +00:00
LICENSE.TXT Upgrade our copy of llvm/clang to trunk r178860, in preparation of the 2013-04-12 17:57:40 +00:00