Convert some more expression parsers to use smart pointers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60904 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp
index 318d768..bde4a50 100644
--- a/lib/Parse/ParseStmt.cpp
+++ b/lib/Parse/ParseStmt.cpp
@@ -749,7 +749,7 @@
}
// Parse the condition.
- OwningExprResult Cond(Actions, ParseSimpleParenExpression());
+ OwningExprResult Cond(ParseSimpleParenExpression());
DoScope.Exit();
if (Cond.isInvalid() || Body.isInvalid())
@@ -1192,7 +1192,7 @@
}
// Read the parenthesized expression.
- OwningExprResult Res(Actions, ParseSimpleParenExpression());
+ OwningExprResult Res(ParseSimpleParenExpression());
if (Res.isInvalid()) {
SkipUntil(tok::r_paren);
return true;