llvm-project/clang/lib
Serge Pavlov 774c6d03b2 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
2014-02-06 03:49:11 +00:00
..
ARCMigrate Enforce safe usage of DiagnosticsEngine::getCustomDiagID() 2014-01-26 06:17:37 +00:00
AST Fix -Wunused-variable 'FD' by using it instead of ND when they're equal but FD 2014-02-05 23:53:29 +00:00
ASTMatchers clang/lib/ASTMatchers/Dynamic/CMakeLists.txt: redundant 2014-02-02 16:46:03 +00:00
Analysis Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
Basic ARM: implement support for crypto intrinsics in arm_neon.h 2014-02-03 17:28:04 +00:00
CodeGen Simplify code by combining ifs. 2014-02-06 00:08:15 +00:00
Driver Add a CC1 option -verify-pch 2014-02-05 22:21:15 +00:00
Edit Add front-end infrastructure now address space casts are in LLVM IR. 2013-12-11 13:39:46 +00:00
Format clang-format: Don't indent relative to unary operators. 2014-02-05 13:43:04 +00:00
Frontend Add a CC1 option -verify-pch 2014-02-05 22:21:15 +00:00
FrontendTool Add a CC1 option -verify-pch 2014-02-05 22:21:15 +00:00
Headers MS Intrin.h: implement __cpuidex and simplify __cpuid 2014-01-31 19:44:55 +00:00
Index Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
Lex Fix the range for Malayam UCNs in C99. 2014-02-05 15:32:23 +00:00
Parse Consolidating several table-generated files containing parser-related string switches into a single file. This reduces build-related complexity by replacing four separate projects (and table-gen instantiations) with a single one. 2014-01-29 22:13:45 +00:00
Rewrite Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
Sema Allow transformation of VariableArray to ConstantArray. 2014-02-06 03:49:11 +00:00
Serialization Add a CC1 option -verify-pch 2014-02-05 22:21:15 +00:00
StaticAnalyzer Allow specifying a custom PathDiagnosticConsumer for use with the static analyzer. 2014-02-03 18:37:50 +00:00
Tooling Sort all the #include lines with LLVM's utils/sort_includes.py which 2014-01-07 11:51:46 +00:00
CMakeLists.txt Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00
Makefile Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00