diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-13 22:29:45 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-13 22:29:45 +0000 |
commit | 534ba90a1b865f3731aa56423e8f02d49ff62ec7 (patch) | |
tree | 0995d6b9a677b8c6a70dcce7357062c57c1b39a8 /lib/CodeGen/CGCXXExpr.cpp | |
parent | 22efb85eb5c09a1859956aaf408900ff83e08c53 (diff) |
Code gen. For virtual destructor call on array objects
(still part of pr5472).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXXExpr.cpp')
-rw-r--r-- | lib/CodeGen/CGCXXExpr.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCXXExpr.cpp b/lib/CodeGen/CGCXXExpr.cpp index aa8acab4e6..abf8d16524 100644 --- a/lib/CodeGen/CGCXXExpr.cpp +++ b/lib/CodeGen/CGCXXExpr.cpp @@ -293,7 +293,6 @@ void CodeGenFunction::EmitCXXDeleteExpr(const CXXDeleteExpr *E) { Builder.CreateIntCast(NumElements, llvm::Type::getInt64Ty(VMContext), false, "count.tmp"); - assert (!Dtor->isVirtual() && "delete [] with virtual dtors NYI"); EmitCXXAggrDestructorCall(Dtor, NumElements, Ptr); Ptr = AllocatedObjectPtr; } |