r291360 - Fix buildbots.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 7 11:58:39 PST 2017


Author: rsmith
Date: Sat Jan  7 13:58:39 2017
New Revision: 291360

URL: http://llvm.org/viewvc/llvm-project?rev=291360&view=rev
Log:
Fix buildbots.

Modified:
    cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp?rev=291360&r1=291359&r2=291360&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp Sat Jan  7 13:58:39 2017
@@ -173,7 +173,7 @@ static void instantiateDependentEnableIf
     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())




More information about the cfe-commits mailing list