From: Richard Smith Date: Sat, 7 Jan 2017 19:58:39 +0000 (+0000) Subject: Fix buildbots. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=651f23fa5ac5b2ab2b695803f53725ed6569cee4;p=clang Fix buildbots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291360 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index e7679fc11e..ffe3566230 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/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())