Convert remaining expression parsers to smart pointers. Now on to the Action connection.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60982 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Parse/ParseInit.cpp b/lib/Parse/ParseInit.cpp
index 26c40a7..ac13902 100644
--- a/lib/Parse/ParseInit.cpp
+++ b/lib/Parse/ParseInit.cpp
@@ -133,13 +133,13 @@
else
Diag(Tok, diag::err_expected_equal_designator);
}
-
+
IdentifierInfo *Name = Tok.getIdentifierInfo();
SourceLocation NameLoc = ConsumeToken();
- return Owned(ParseAssignmentExprWithObjCMessageExprStart(
- StartLoc, NameLoc, Name, 0));
+ return ParseAssignmentExprWithObjCMessageExprStart(
+ StartLoc, NameLoc, Name, ExprArg(Actions));
}
-
+
// Note that we parse this as an assignment expression, not a constant
// expression (allowing *=, =, etc) to handle the objc case. Sema needs
// to validate that the expression is a constant.
@@ -168,9 +168,9 @@
Diag(Tok, diag::err_expected_equal_designator);
}
- return Owned(ParseAssignmentExprWithObjCMessageExprStart(StartLoc,
- SourceLocation(),
- 0, Idx.release()));
+ return ParseAssignmentExprWithObjCMessageExprStart(StartLoc,
+ SourceLocation(),
+ 0, move_convert(Idx));
}
// Create designation if we haven't already.