aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCXX.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-31 21:12:26 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-31 21:12:26 +0000
commit627a3e573f1d9f0429d62c7ceb742a21cdabfce0 (patch)
tree9c79b99952f77fe7e8d4c213d46a558069a9c27b /lib/CodeGen/CGCXX.cpp
parent3923e95280210ef877153f0c3dbab12d6ed2ad43 (diff)
...and aggregate POD types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r--lib/CodeGen/CGCXX.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp
index 9e20530711..febfbacf7c 100644
--- a/lib/CodeGen/CGCXX.cpp
+++ b/lib/CodeGen/CGCXX.cpp
@@ -299,10 +299,8 @@ llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) {
Builder.CreateStore(EmitScalarExpr(Init), NewPtr);
else if (AllocType->isAnyComplexType())
EmitComplexExprIntoAddr(Init, NewPtr, AllocType.isVolatileQualified());
- else {
- ErrorUnsupported(E, "new expression");
- return llvm::UndefValue::get(ConvertType(E->getType()));
- }
+ else
+ EmitAggExpr(Init, NewPtr, AllocType.isVolatileQualified());
}
return NewPtr;