commit | 0742090e3d70475d439cc06e07e86b9254400ce1 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Sun Dec 24 16:24:20 2017 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Sun Dec 24 16:24:20 2017 +0000 |
tree | e40e9daedf8b6b8485a143404d1d0549839e6d12 | |
parent | 917fdbe35cac8fea618344c1639343f44fb97937 [diff] [blame] |
[AST] Inline CompoundStmt contents into the parent allocation. Saves a pointer on every CompoundStmt. llvm-svn: 321429
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index ff0f4d9..4474d62 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp
@@ -388,7 +388,7 @@ DiagnoseEmptyLoopBody(Elts[i], Elts[i + 1]); } - return new (Context) CompoundStmt(Context, Elts, L, R); + return CompoundStmt::Create(Context, Elts, L, R); } StmtResult