aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-01-18 16:53:17 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-01-18 16:53:17 +0000
commit3037ed0a27dba62e522304183718efc149e8b6d9 (patch)
tree4c28c8a28d61f00486b22bdb91b5493467526650 /lib/Parse/ParseStmt.cpp
parent4cffe2fd5c23168bc08f0453c684cbd3f79471d3 (diff)
Convert asm statement action to smart pointers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseStmt.cpp')
-rw-r--r--lib/Parse/ParseStmt.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp
index 9ddd26a8b3..6ca577347d 100644
--- a/lib/Parse/ParseStmt.cpp
+++ b/lib/Parse/ParseStmt.cpp
@@ -1155,12 +1155,11 @@ Parser::OwningStmtResult Parser::ParseAsmStatement(bool &msAsm) {
RParenLoc = MatchRHSPunctuation(tok::r_paren, Loc);
}
- return Owned(Actions.ActOnAsmStmt(AsmLoc, isSimple, isVolatile,
- NumOutputs, NumInputs,
- &Names[0], Constraints.take(),
- Exprs.take(), AsmString.release(),
- Clobbers.size(), Clobbers.take(),
- RParenLoc));
+ return Actions.ActOnAsmStmt(AsmLoc, isSimple, isVolatile,
+ NumOutputs, NumInputs, &Names[0],
+ move_convert(Constraints), move_convert(Exprs),
+ move_convert(AsmString), move_convert(Clobbers),
+ RParenLoc);
}
/// ParseAsmOperands - Parse the asm-operands production as used by