From 887ddf39b365320fdf8dde923287bf52bb3c6a38 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 23 Feb 2012 17:07:43 +0000 Subject: Replace a use of hasTrivialDefaultConstructor() with the appropriate isTrivial() call. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151259 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprCXX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CGExprCXX.cpp') diff --git a/lib/CodeGen/CGExprCXX.cpp b/lib/CodeGen/CGExprCXX.cpp index af9c766238..3fe7f8c99d 100644 --- a/lib/CodeGen/CGExprCXX.cpp +++ b/lib/CodeGen/CGExprCXX.cpp @@ -895,7 +895,7 @@ static void EmitNewInitializer(CodeGenFunction &CGF, const CXXNewExpr *E, if (const CXXConstructExpr *CCE = dyn_cast_or_null(Init)){ CXXConstructorDecl *Ctor = CCE->getConstructor(); bool RequiresZeroInitialization = false; - if (Ctor->getParent()->hasTrivialDefaultConstructor()) { + if (Ctor->isTrivial()) { // If new expression did not specify value-initialization, then there // is no initialization. if (!CCE->requiresZeroInitialization() || Ctor->getParent()->isEmpty()) -- cgit v1.2.3