diff options
| author | Manman Ren <manman.ren@gmail.com> | 2016-02-24 23:05:43 +0000 |
|---|---|---|
| committer | Manman Ren <manman.ren@gmail.com> | 2016-02-24 23:05:43 +0000 |
| commit | c445d387769d05753f678f6fb88403e2e1b18710 (patch) | |
| tree | a2cf407c24229324b4b455e042729ef1eaaefd86 /llvm/test/CodeGen/Generic | |
| parent | 1c576054cbfb9dfcacd2ee9d209792ccc95327cc (diff) | |
| download | bcm5719-llvm-c445d387769d05753f678f6fb88403e2e1b18710.tar.gz bcm5719-llvm-c445d387769d05753f678f6fb88403e2e1b18710.zip | |
Fix assertion failure on MaybeODRUseExprs.
In VisitNonTypeTemplateParamDecl, before SubstExpr with the default argument,
we should create a ConstantEvaluated ExpressionEvaluationContext. Without this,
it is possible to use a PotentiallyEvaluated ExpressionEvaluationContext; and
MaybeODRUseExprs will not be cleared when popping the context, causing
assertion failure.
This is similar to how we handle the context before SubstExpr with the
default argument, in SubstDefaultTemplateArgument.
Part of PR13986.
rdar://24480205
Differential Revision: http://reviews.llvm.org/D17576
llvm-svn: 261803
Diffstat (limited to 'llvm/test/CodeGen/Generic')
0 files changed, 0 insertions, 0 deletions

