From: Douglas Gregor Date: Fri, 24 Feb 2012 07:55:51 +0000 (+0000) Subject: Remove some trivial uses of hasTrivialCopyConstructor() and X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6cfe8ba2b4d98c20181568e449edf0b60904b03;p=clang Remove some trivial uses of hasTrivialCopyConstructor() and hasTrivialMoveConstructor(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151354 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 85aa5ee81e..b69a805f78 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -2225,8 +2225,8 @@ static bool HandleConstructorCall(SourceLocation CallLoc, const LValue &This, // essential for unions, where the operations performed by the constructor // cannot be represented by ctor-initializers. if (Definition->isDefaulted() && - ((Definition->isCopyConstructor() && RD->hasTrivialCopyConstructor()) || - (Definition->isMoveConstructor() && RD->hasTrivialMoveConstructor()))) { + ((Definition->isCopyConstructor() && Definition->isTrivial()) || + (Definition->isMoveConstructor() && Definition->isTrivial()))) { LValue RHS; RHS.setFrom(ArgValues[0]); CCValue Value;