From df3b2089692dae0ef00b79e9240b2ccf9b36ff94 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 17 May 2009 19:34:11 +0000 Subject: [PATCH] Fix DISABLE_SMART_POINTERS build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71984 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Parse/Action.h | 3 ++- lib/Sema/SemaTemplateInstantiateStmt.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index 11f006b071..6d4e2b753d 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -126,7 +126,8 @@ public: ExprArg Expr; }; - FullExprArg FullExpr(ExprArg &Arg) { + template + FullExprArg FullExpr(T &Arg) { return FullExprArg(ActOnFinishFullExpr(move(Arg))); } diff --git a/lib/Sema/SemaTemplateInstantiateStmt.cpp b/lib/Sema/SemaTemplateInstantiateStmt.cpp index ce5ebb58dc..8dcdce2712 100644 --- a/lib/Sema/SemaTemplateInstantiateStmt.cpp +++ b/lib/Sema/SemaTemplateInstantiateStmt.cpp @@ -25,7 +25,8 @@ namespace { Sema &SemaRef; const TemplateArgumentList &TemplateArgs; - Sema::FullExprArg FullExpr(Sema::ExprArg &expr) { + template + Sema::FullExprArg FullExpr(T &expr) { return SemaRef.FullExpr(expr); } -- 2.40.0