From: Anders Carlsson Date: Sun, 17 May 2009 19:34:11 +0000 (+0000) Subject: Fix DISABLE_SMART_POINTERS build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df3b2089692dae0ef00b79e9240b2ccf9b36ff94;p=clang Fix DISABLE_SMART_POINTERS build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71984 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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); }