diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-02-24 07:55:51 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-02-24 07:55:51 +0000 |
commit | f6cfe8ba2b4d98c20181568e449edf0b60904b03 (patch) | |
tree | dbaa19f26d41138f894fef745d67619238bd7d8c /lib/AST/ExprConstant.cpp | |
parent | 5d86f61b9c54429fc3f9149fc0f7009010a644a1 (diff) |
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
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r-- | lib/AST/ExprConstant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |