forked from OSchip/llvm-project
parent
a7d2194168
commit
0ba25a5cef
|
@ -173,7 +173,7 @@ static void instantiateDependentEnableIfAttr(
|
|||
const EnableIfAttr *A, const Decl *Tmpl, Decl *New) {
|
||||
Expr *Cond = nullptr;
|
||||
{
|
||||
ContextRAII SwitchContext(*this, cast<FunctionDecl>(New));
|
||||
Sema::ContextRAII SwitchContext(S, cast<FunctionDecl>(New));
|
||||
EnterExpressionEvaluationContext Unevaluated(S, Sema::ConstantEvaluated);
|
||||
ExprResult Result = S.SubstExpr(A->getCond(), TemplateArgs);
|
||||
if (Result.isInvalid())
|
||||
|
|
Loading…
Reference in New Issue