hasTrivialMoveConstructor().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151354
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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;