summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2011-05-09 18:22:59 +0000
committerAlexis Hunt <alercah@gmail.com>2011-05-09 18:22:59 +0000
commitf479f1b7e4102072e3c6899b4f9c9122543ae880 (patch)
tree0bb3531526d9896503bd0d62943d339ce01b39cb /clang/lib/CodeGen/CGExprAgg.cpp
parent5dc19f916c2ceeb301ed145c7fbcf5f99b7a85c7 (diff)
downloadbcm5719-llvm-f479f1b7e4102072e3c6899b4f9c9122543ae880.tar.gz
bcm5719-llvm-f479f1b7e4102072e3c6899b4f9c9122543ae880.zip
Rename "hasTrivialConstructor" to "hasTrivialDefaultConstructor" and
modify the semantics slightly to accomodate default constructors (I hope). llvm-svn: 131087
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index 29c76887a7c..d8da642a6b3 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/lib/CodeGen/CGExprAgg.cpp
@@ -642,7 +642,7 @@ void AggExprEmitter::VisitInitListExpr(InitListExpr *E) {
if (const RecordType *RT = CGF.getContext()
.getBaseElementType(ElementType)->getAs<RecordType>()) {
const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
- hasNonTrivialCXXConstructor = !RD->hasTrivialConstructor();
+ hasNonTrivialCXXConstructor = !RD->hasTrivialDefaultConstructor();
}
// FIXME: were we intentionally ignoring address spaces and GC attributes?
OpenPOWER on IntegriCloud