summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BranchFolding.h
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2016-02-24 23:05:43 +0000
committerManman Ren <manman.ren@gmail.com>2016-02-24 23:05:43 +0000
commitc445d387769d05753f678f6fb88403e2e1b18710 (patch)
treea2cf407c24229324b4b455e042729ef1eaaefd86 /llvm/lib/CodeGen/BranchFolding.h
parent1c576054cbfb9dfcacd2ee9d209792ccc95327cc (diff)
downloadbcm5719-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/lib/CodeGen/BranchFolding.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud