diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-05-10 15:59:37 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-10 15:59:37 +0000 |
commit | 90556d43dc697a675eda81ed80f2f585662bca4d (patch) | |
tree | 1d8adcace5bef861f7440062fbc6b3fca71b02cf | |
parent | ecafebe28f379bf45eaca4bf8469e2586eba9902 (diff) |
Fix refacto in r103387, noticed by Christopher Jefferson.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103406 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/ExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ExprCXX.cpp b/lib/AST/ExprCXX.cpp index f7d93de015..709f12b1b4 100644 --- a/lib/AST/ExprCXX.cpp +++ b/lib/AST/ExprCXX.cpp @@ -542,9 +542,9 @@ CXXExprWithTemporaries::CXXExprWithTemporaries(Expr *subexpr, void CXXExprWithTemporaries::setNumTemporaries(unsigned N) { assert(Temps == 0 && "Cannot resize with this"); + NumTemps = N; // FIXME: This is a memory leak in disable free mode. Temps = new CXXTemporary*[NumTemps]; - NumTemps = N; } |