aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Parse/Action.h3
-rw-r--r--lib/Sema/SemaTemplateInstantiateStmt.cpp3
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<typename T>
+ 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<typename T>
+ Sema::FullExprArg FullExpr(T &expr) {
return SemaRef.FullExpr(expr);
}