Convert a two more statement actions to smart pointers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61456 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp
index c853ecf..9f525a5 100644
--- a/lib/Parse/ParseStmt.cpp
+++ b/lib/Parse/ParseStmt.cpp
@@ -271,9 +271,9 @@
if (SubStmt.isInvalid())
SubStmt = Actions.ActOnNullStmt(ColonLoc);
- return Owned(Actions.ActOnCaseStmt(CaseLoc, LHS.release(), DotDotDotLoc,
- RHS.release(), ColonLoc,
- SubStmt.release()));
+ return Actions.ActOnCaseStmt(CaseLoc, move_convert(LHS), DotDotDotLoc,
+ move_convert(RHS), ColonLoc,
+ move_convert(SubStmt));
}
/// ParseDefaultStatement
@@ -303,8 +303,8 @@
if (SubStmt.isInvalid())
return StmtError();
- return Owned(Actions.ActOnDefaultStmt(DefaultLoc, ColonLoc,
- SubStmt.release(), CurScope));
+ return Actions.ActOnDefaultStmt(DefaultLoc, ColonLoc,
+ move_convert(SubStmt), CurScope);
}