diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-06 01:31:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-06 01:31:23 +0000 |
commit | 4355be0758856cf7645e264d4813831dc27ce78c (patch) | |
tree | 54c362fc94330b22833037375b952b0df02b4d23 /lib/AST/ExprCXX.cpp | |
parent | 6827f3ff9fa788e6380d477732e1959fb593dfe2 (diff) |
Revert "Initialize default CXXConstructExpr arguments to 0. Fixes a crash when
destroying the CXXConstructExpr.", this is causing test failures across the
board.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprCXX.cpp')
-rw-r--r-- | lib/AST/ExprCXX.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/AST/ExprCXX.cpp b/lib/AST/ExprCXX.cpp index 0cad283cb8..0ffb152872 100644 --- a/lib/AST/ExprCXX.cpp +++ b/lib/AST/ExprCXX.cpp @@ -403,8 +403,6 @@ CXXConstructExpr::CXXConstructExpr(ASTContext &C, StmtClass SC, QualType T, Args = new (C) Stmt*[NumArgs]; for (unsigned i = 0; i < numargs; ++i) Args[i] = args[i]; - for (unsigned i = numargs; i < NumArgs; ++i) - Args[0] = 0; } } |