diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-12-29 20:03:39 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-12-29 20:03:39 +0000 |
commit | d36aa359e2f45cd22c7366a015ad94de08044dbb (patch) | |
tree | e62717815d76fb34c6b7b78681b038fd778f7693 /lib/Analysis | |
parent | 5ba0c8e4077902f53e5f3e8271e470a1d8c1c074 (diff) |
ArrayRefize a CompoundStmt constructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/BodyFarm.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Analysis/BodyFarm.cpp b/lib/Analysis/BodyFarm.cpp index d038cf1ecd..98010d3cb0 100644 --- a/lib/Analysis/BodyFarm.cpp +++ b/lib/Analysis/BodyFarm.cpp @@ -103,9 +103,7 @@ BinaryOperator *ASTMaker::makeComparison(const Expr *LHS, const Expr *RHS, } CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) { - return new (C) CompoundStmt(C, const_cast<Stmt**>(Stmts.data()), - Stmts.size(), - SourceLocation(), SourceLocation()); + return new (C) CompoundStmt(C, Stmts, SourceLocation(), SourceLocation()); } DeclRefExpr *ASTMaker::makeDeclRefExpr(const VarDecl *D) { |