diff options
author | Anders Carlsson <andersca@mac.com> | 2010-05-21 21:45:41 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-05-21 21:45:41 +0000 |
commit | da1641cd1201176b1cfbc8ea7f36865733f43859 (patch) | |
tree | 401355c49bf89431fdbea2ed6f62d97d314ef0ef /clang/lib/CodeGen/CGExpr.cpp | |
parent | 9f44d1453b67a6d9e7acb8a68146fc23261c3e57 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |