diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-12-24 16:24:20 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-12-24 16:24:20 +0000 |
commit | 0742090e3d70475d439cc06e07e86b9254400ce1 (patch) | |
tree | e40e9daedf8b6b8485a143404d1d0549839e6d12 /clang/lib/Analysis/BodyFarm.cpp | |
parent | 917fdbe35cac8fea618344c1639343f44fb97937 (diff) | |
download | bcm5719-llvm-0742090e3d70475d439cc06e07e86b9254400ce1.tar.gz bcm5719-llvm-0742090e3d70475d439cc06e07e86b9254400ce1.zip |
[AST] Inline CompoundStmt contents into the parent allocation.
Saves a pointer on every CompoundStmt.
llvm-svn: 321429
Diffstat (limited to 'clang/lib/Analysis/BodyFarm.cpp')
-rw-r--r-- | clang/lib/Analysis/BodyFarm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BodyFarm.cpp b/clang/lib/Analysis/BodyFarm.cpp index e5d3c5ce5bc..89ca8484819 100644 --- a/clang/lib/Analysis/BodyFarm.cpp +++ b/clang/lib/Analysis/BodyFarm.cpp @@ -133,7 +133,7 @@ BinaryOperator *ASTMaker::makeComparison(const Expr *LHS, const Expr *RHS, } CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) { - return new (C) CompoundStmt(C, Stmts, SourceLocation(), SourceLocation()); + return CompoundStmt::Create(C, Stmts, SourceLocation(), SourceLocation()); } DeclRefExpr *ASTMaker::makeDeclRefExpr( |