aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseInit.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2008-12-13 15:32:12 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2008-12-13 15:32:12 +0000
commit1d922960e083906a586609ac6978678147250177 (patch)
treeb4170c0d91c8b28807d926c3d26c5b52f8d4721d /lib/Parse/ParseInit.cpp
parent9578504165eccfbdea4bc6eddfb5c41f598bafe2 (diff)
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
Diffstat (limited to 'lib/Parse/ParseInit.cpp')
-rw-r--r--lib/Parse/ParseInit.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Parse/ParseInit.cpp b/lib/Parse/ParseInit.cpp
index 26c40a7116..ac13902c74 100644
--- a/lib/Parse/ParseInit.cpp
+++ b/lib/Parse/ParseInit.cpp
@@ -133,13 +133,13 @@ ParseInitializerWithPotentialDesignator(InitListDesignations &Designations,
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 @@ ParseInitializerWithPotentialDesignator(InitListDesignations &Designations,
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.