From 0ba25a5cef4f39bc38bfd0dbd1f1111a5afa972e Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 7 Jan 2017 19:58:39 +0000 Subject: Fix buildbots. llvm-svn: 291360 --- clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp') diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index e7679fc11e2..ffe35662303 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -173,7 +173,7 @@ static void instantiateDependentEnableIfAttr( const EnableIfAttr *A, const Decl *Tmpl, Decl *New) { Expr *Cond = nullptr; { - ContextRAII SwitchContext(*this, cast(New)); + Sema::ContextRAII SwitchContext(S, cast(New)); EnterExpressionEvaluationContext Unevaluated(S, Sema::ConstantEvaluated); ExprResult Result = S.SubstExpr(A->getCond(), TemplateArgs); if (Result.isInvalid()) -- cgit v1.2.3