diff options
author | Alexis Hunt <alercah@gmail.com> | 2011-05-09 18:22:59 +0000 |
---|---|---|
committer | Alexis Hunt <alercah@gmail.com> | 2011-05-09 18:22:59 +0000 |
commit | f479f1b7e4102072e3c6899b4f9c9122543ae880 (patch) | |
tree | 0bb3531526d9896503bd0d62943d339ce01b39cb /clang/lib/CodeGen/CGExprCXX.cpp | |
parent | 5dc19f916c2ceeb301ed145c7fbcf5f99b7a85c7 (diff) | |
download | bcm5719-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/CGExprCXX.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp index 6ee9bc1033e..cef5d916ff9 100644 --- a/clang/lib/CodeGen/CGExprCXX.cpp +++ b/clang/lib/CodeGen/CGExprCXX.cpp @@ -738,7 +738,7 @@ static void EmitNewInitializer(CodeGenFunction &CGF, const CXXNewExpr *E, if (E->isArray()) { if (CXXConstructorDecl *Ctor = E->getConstructor()) { bool RequiresZeroInitialization = false; - if (Ctor->getParent()->hasTrivialConstructor()) { + if (Ctor->getParent()->hasTrivialDefaultConstructor()) { // If new expression did not specify value-initialization, then there // is no initialization. if (!E->hasInitializer() || Ctor->getParent()->isEmpty()) |