diff options
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r-- | lib/AST/Stmt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index 02f5eee828..f8f6e067e1 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -98,6 +98,10 @@ bool Stmt::CollectingStats(bool enable) { return StatSwitch; } +NullStmt* NullStmt::Clone(ASTContext &C) const { + return new (C) NullStmt(SemiLoc); +} + void CompoundStmt::setStmts(ASTContext &C, Stmt **Stmts, unsigned NumStmts) { if (this->Body) C.Deallocate(Body); |