diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-15 22:32:39 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-15 22:32:39 +0000 |
commit | 861ce3178c70cfb0fa50baf685e1ad363538eaa9 (patch) | |
tree | 8b9ec13dd9f5ff3203a81c39c4eeec43ed8b0e19 /lib/AST/Stmt.cpp | |
parent | 20ecb9eec281184cfb2c7110b2f6d86fa446761f (diff) |
Template instantiation for break and continue statements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r-- | lib/AST/Stmt.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index f8f6e067e1..71103b83e3 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -102,6 +102,14 @@ NullStmt* NullStmt::Clone(ASTContext &C) const { return new (C) NullStmt(SemiLoc); } +ContinueStmt* ContinueStmt::Clone(ASTContext &C) const { + return new (C) ContinueStmt(ContinueLoc); +} + +BreakStmt* BreakStmt::Clone(ASTContext &C) const { + return new (C) BreakStmt(BreakLoc); +} + void CompoundStmt::setStmts(ASTContext &C, Stmt **Stmts, unsigned NumStmts) { if (this->Body) C.Deallocate(Body); |