Fix buildbots.

llvm-svn: 291360
This commit is contained in:
Richard Smith 2017-01-07 19:58:39 +00:00
parent a7d2194168
commit 0ba25a5cef
1 changed files with 1 additions and 1 deletions

View File

@ -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())