summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-05-21 22:17:48 +0000
committerAnders Carlsson <andersca@mac.com>2010-05-21 22:17:48 +0000
commitc866eb5ba9157ff54592373bd3b0b21b289a3eb6 (patch)
treed396d600f7c126d3bcdb5954123591082c41e64a /clang/lib/CodeGen/CGClass.cpp
parenta2448b85be227ea1b67aa29463de239d4c166ecf (diff)
downloadbcm5719-llvm-c866eb5ba9157ff54592373bd3b0b21b289a3eb6.tar.gz
bcm5719-llvm-c866eb5ba9157ff54592373bd3b0b21b289a3eb6.zip
Unbreak self-host.
llvm-svn: 104390
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 587a68beb22..82c72288d91 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -465,7 +465,7 @@ static void EmitMemberInitializer(CodeGenFunction &CGF,
/*IsInitializer=*/true);
CGF.EmitStoreThroughLValue(RHS, LHS, FieldType);
} else if (FieldType->isArrayType() && !MemberInit->getInit()) {
- CGF.EmitNullInitialization(LHS.getAddress(), Field->getType());
+ CGF.EmitMemSetToZero(LHS.getAddress(), Field->getType());
} else if (!CGF.hasAggregateLLVMType(Field->getType())) {
RHS = RValue::get(CGF.EmitScalarExpr(MemberInit->getInit(), true));
CGF.EmitStoreThroughLValue(RHS, LHS, FieldType);
OpenPOWER on IntegriCloud