summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2008-12-11 19:30:53 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2008-12-11 19:30:53 +0000
commit042ad95d4eb3fbf85f63f634a794ab0dea5f266d (patch)
tree25bac2b37c3403b0c4a8a1d684eb4bed597e450c /clang/lib/Parse/ParseExpr.cpp
parent1fa7bd16c8ce5e7afb879f4a5d4e448f153458c1 (diff)
downloadbcm5719-llvm-042ad95d4eb3fbf85f63f634a794ab0dea5f266d.tar.gz
bcm5719-llvm-042ad95d4eb3fbf85f63f634a794ab0dea5f266d.zip
Convert a number of statement parsers to smart pointers.
llvm-svn: 60888
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index 9babd10ed07..46e967ec884 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -1038,7 +1038,7 @@ Parser::ExprResult Parser::ParseParenExpression(ParenParseOption &ExprType,
if (ExprType >= CompoundStmt && Tok.is(tok::l_brace)) {
Diag(Tok, diag::ext_gnu_statement_expr);
- OwningStmtResult Stmt(Actions, ParseCompoundStatement(true));
+ OwningStmtResult Stmt(ParseCompoundStatement(true));
ExprType = CompoundStmt;
// If the substmt parsed correctly, build the AST node.
@@ -1192,7 +1192,7 @@ Parser::ExprResult Parser::ParseBlockLiteralExpression() {
OwningExprResult Result(Actions, true);
if (Tok.is(tok::l_brace)) {
- OwningStmtResult Stmt(Actions, ParseCompoundStatementBody());
+ OwningStmtResult Stmt(ParseCompoundStatementBody());
if (!Stmt.isInvalid()) {
Result = Actions.ActOnBlockStmtExpr(CaretLoc, Stmt.release(), CurScope);
} else {
OpenPOWER on IntegriCloud