diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-08-24 11:54:20 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-08-24 11:54:20 +0000 |
commit | c215e76f784f7a7625b22a62ed585ced81b527a2 (patch) | |
tree | 0a75830ecdd0e9be5ba157b675308b92085c1a8e /clang/lib/Sema/TreeTransform.h | |
parent | d574ac2f4de2fcf868256672d598800a80aa3530 (diff) | |
download | bcm5719-llvm-c215e76f784f7a7625b22a62ed585ced81b527a2.tar.gz bcm5719-llvm-c215e76f784f7a7625b22a62ed585ced81b527a2.zip |
Push ArrayRef through the Expr hierarchy.
No functionality change.
llvm-svn: 162552
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
-rw-r--r-- | clang/lib/Sema/TreeTransform.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h index af4f0a47fb3..e4c30e13ec6 100644 --- a/clang/lib/Sema/TreeTransform.h +++ b/clang/lib/Sema/TreeTransform.h @@ -2430,12 +2430,9 @@ public: return ExprError(); // Build the CallExpr - unsigned NumSubExprs = SubExprs.size(); - Expr **Subs = SubExprs.data(); ExprResult TheCall = SemaRef.Owned( - new (SemaRef.Context) CallExpr(SemaRef.Context, Callee.take(), - Subs, NumSubExprs, - Builtin->getCallResultType(), + new (SemaRef.Context) CallExpr(SemaRef.Context, Callee.take(), SubExprs, + Builtin->getCallResultType(), Expr::getValueKindForType(Builtin->getResultType()), RParenLoc)); @@ -2512,10 +2509,7 @@ public: // Just create the expression; there is not any interesting semantic // analysis here because we can't actually build an AtomicExpr until // we are sure it is semantically sound. - unsigned NumSubExprs = SubExprs.size(); - Expr **Subs = SubExprs.data(); - return new (SemaRef.Context) AtomicExpr(BuiltinLoc, Subs, - NumSubExprs, RetTy, Op, + return new (SemaRef.Context) AtomicExpr(BuiltinLoc, SubExprs, RetTy, Op, RParenLoc); } |