From f6cfe8ba2b4d98c20181568e449edf0b60904b03 Mon Sep 17 00:00:00 2001
From: Douglas Gregor <dgregor@apple.com>
Date: Fri, 24 Feb 2012 07:55:51 +0000
Subject: [PATCH] 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
---
 lib/AST/ExprConstant.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp
index 85aa5ee81ef..b69a805f785 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;
-- 
GitLab