[cfe-commits] r103406 - /cfe/trunk/lib/AST/ExprCXX.cpp
Daniel Dunbar
daniel at zuster.org
Mon May 10 08:59:37 PDT 2010
Author: ddunbar
Date: Mon May 10 10:59:37 2010
New Revision: 103406
URL: http://llvm.org/viewvc/llvm-project?rev=103406&view=rev
Log:
Fix refacto in r103387, noticed by Christopher Jefferson.
Modified:
cfe/trunk/lib/AST/ExprCXX.cpp
Modified: cfe/trunk/lib/AST/ExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprCXX.cpp?rev=103406&r1=103405&r2=103406&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprCXX.cpp (original)
+++ cfe/trunk/lib/AST/ExprCXX.cpp Mon May 10 10:59:37 2010
@@ -542,9 +542,9 @@
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;
}
More information about the cfe-commits
mailing list