summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
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
commit96c012ff8b89dc0ae97db225ccee68e862caed59 (patch)
tree2c0a1d79bc0d10ddbb251134b7f88807684c7794 /clang/lib/CodeGen
parent60d0c2c1c2eb81fe389a912f13762c8f18eb72d3 (diff)
downloadbcm5719-llvm-96c012ff8b89dc0ae97db225ccee68e862caed59.tar.gz
bcm5719-llvm-96c012ff8b89dc0ae97db225ccee68e862caed59.zip
...and aggregate POD types.
llvm-svn: 72676
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCXX.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp
index 9e205307110..febfbacf7cc 100644
--- a/clang/lib/CodeGen/CGCXX.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud