summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-05-21 21:45:41 +0000
committerAnders Carlsson <andersca@mac.com>2010-05-21 21:45:41 +0000
commitda1641cd1201176b1cfbc8ea7f36865733f43859 (patch)
tree401355c49bf89431fdbea2ed6f62d97d314ef0ef /clang/lib/CodeGen/CGExpr.cpp
parent9f44d1453b67a6d9e7acb8a68146fc23261c3e57 (diff)
downloadbcm5719-llvm-da1641cd1201176b1cfbc8ea7f36865733f43859.tar.gz
bcm5719-llvm-da1641cd1201176b1cfbc8ea7f36865733f43859.zip
Rename CodeGenFunction::EmitMemSetToZero to EmitNullInitialization. Handle setting null data member pointers correctly. Fixes PR7139.
llvm-svn: 104387
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 74e64e59a5a..a4a4bda723d 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -1844,7 +1844,7 @@ LValue CodeGenFunction::EmitNullInitializationLValue(
const CXXZeroInitValueExpr *E) {
QualType Ty = E->getType();
LValue LV = LValue::MakeAddr(CreateMemTemp(Ty), MakeQualifiers(Ty));
- EmitMemSetToZero(LV.getAddress(), Ty);
+ EmitNullInitialization(LV.getAddress(), Ty);
return LV;
}
OpenPOWER on IntegriCloud