[cfe-commits] r77302 - /cfe/trunk/lib/AST/Expr.cpp
Daniel Dunbar
daniel at zuster.org
Mon Jul 27 23:29:46 PDT 2009
Author: ddunbar
Date: Tue Jul 28 01:29:46 2009
New Revision: 77302
URL: http://llvm.org/viewvc/llvm-project?rev=77302&view=rev
Log:
CallExpr's SubExprs sometimes were allocated in the wrong place.
Modified:
cfe/trunk/lib/AST/Expr.cpp
Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=77302&r1=77301&r2=77302&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Tue Jul 28 01:29:46 2009
@@ -249,7 +249,7 @@
}
// Otherwise, we are growing the # arguments. New an bigger argument array.
- Stmt **NewSubExprs = new Stmt*[NumArgs+1];
+ Stmt **NewSubExprs = new (C) Stmt*[NumArgs+1];
// Copy over args.
for (unsigned i = 0; i != getNumArgs()+ARGS_START; ++i)
NewSubExprs[i] = SubExprs[i];
More information about the cfe-commits
mailing list