From: Douglas Gregor Date: Thu, 23 Feb 2012 17:07:43 +0000 (+0000) Subject: Replace a use of hasTrivialDefaultConstructor() with the appropriate X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=887ddf39b365320fdf8dde923287bf52bb3c6a38;p=clang 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 --- 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())