diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-13 15:32:12 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-13 15:32:12 +0000 |
commit | cb6e2c615605d22f726029cba09a8c92c6638f8d (patch) | |
tree | 3ac79bb361e3e10d0a7aa8ba2a5c195a29b4be7c /clang/lib/Parse/ParseInit.cpp | |
parent | 19ed30be382f63dee25884282438c98df70c20b1 (diff) | |
download | bcm5719-llvm-cb6e2c615605d22f726029cba09a8c92c6638f8d.tar.gz bcm5719-llvm-cb6e2c615605d22f726029cba09a8c92c6638f8d.zip |
Convert remaining expression parsers to smart pointers. Now on to the Action connection.
llvm-svn: 60982
Diffstat (limited to 'clang/lib/Parse/ParseInit.cpp')
-rw-r--r-- | clang/lib/Parse/ParseInit.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Parse/ParseInit.cpp b/clang/lib/Parse/ParseInit.cpp index 26c40a7116b..ac13902c744 100644 --- a/clang/lib/Parse/ParseInit.cpp +++ b/clang/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. |