Fix DISABLE_SMART_POINTERS build.

llvm-svn: 71984
This commit is contained in:
Anders Carlsson 2009-05-17 19:34:11 +00:00
parent 85a307dffb
commit cdf1ca1cf4
2 changed files with 4 additions and 2 deletions

View File

@ -126,7 +126,8 @@ public:
ExprArg Expr;
};
FullExprArg FullExpr(ExprArg &Arg) {
template<typename T>
FullExprArg FullExpr(T &Arg) {
return FullExprArg(ActOnFinishFullExpr(move(Arg)));
}

View File

@ -25,7 +25,8 @@ namespace {
Sema &SemaRef;
const TemplateArgumentList &TemplateArgs;
Sema::FullExprArg FullExpr(Sema::ExprArg &expr) {
template<typename T>
Sema::FullExprArg FullExpr(T &expr) {
return SemaRef.FullExpr(expr);
}