diff options
| author | Faisal Vali <faisalv@yahoo.com> | 2015-11-19 19:20:17 +0000 |
|---|---|---|
| committer | Faisal Vali <faisalv@yahoo.com> | 2015-11-19 19:20:17 +0000 |
| commit | 48401eb18aabafd50ea8a24d254b3cc74a7b1363 (patch) | |
| tree | 0085b1cc5d62e1005371d9a411d6e28e781ef0a7 /llvm/lib/Transforms | |
| parent | 7aac24805bdcb5e2d1c47d09a92e43da89eabcfb (diff) | |
| download | bcm5719-llvm-48401eb18aabafd50ea8a24d254b3cc74a7b1363.tar.gz bcm5719-llvm-48401eb18aabafd50ea8a24d254b3cc74a7b1363.zip | |
Change the expression evaluation context from Unevaluated to ConstantEvaluated while substituting into non-type template argument defaults.
Also address a typo from a prior patch that performed a similar fix during Parsing of default non-type template arguments. I left the RAII ExpressionEvaluationContext variable Name as Unevaluated though we had switched the context to ConstantEvaluated.
There should be no functionality change here - since when expression evaluation context is popped off, for the most part these two contexts currently behave similarly in regards to lambda diagnostics and odr-use tracking.
Like its parsing counterpart, this patch presages the advent of constexpr lambda patches...
llvm-svn: 253590
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions

