summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprCXX.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-22 04:16:24 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-22 04:16:24 +0000
commit84fa510aa9ee3ee97ded906fe4635c2952596fe9 (patch)
tree99fc717368577049fd788cb8060618198f79f9ab /clang/lib/CodeGen/CGExprCXX.cpp
parenta8bbb82c55a3c8885b5cf23dd84f80b2a08c069a (diff)
downloadbcm5719-llvm-84fa510aa9ee3ee97ded906fe4635c2952596fe9.tar.gz
bcm5719-llvm-84fa510aa9ee3ee97ded906fe4635c2952596fe9.zip
Abstract more member-pointerness out.
llvm-svn: 111771
Diffstat (limited to 'clang/lib/CodeGen/CGExprCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp
index 11b6f053b24..fb5414016a9 100644
--- a/clang/lib/CodeGen/CGExprCXX.cpp
+++ b/clang/lib/CodeGen/CGExprCXX.cpp
@@ -552,7 +552,7 @@ static void EmitNewInitializer(CodeGenFunction &CGF, const CXXNewExpr *E,
if (!E->hasInitializer() || Ctor->getParent()->isEmpty())
return;
- if (!CGF.CGM.getTypes().ContainsPointerToDataMember(
+ if (!CGF.CGM.getCXXABI().RequiresNonZeroInitializer(
E->getAllocatedType())) {
// Optimization: since zero initialization will just set the memory
// to all zeroes, generate a single memset to do it in one shot.
OpenPOWER on IntegriCloud