summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-24 07:55:51 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-24 07:55:51 +0000
commit093d4be5504f118a05a6c140eda38aa8924e7cb6 (patch)
treee1f7939298a81c0d074b16afac1fd7b6273b1546 /clang/lib
parentf704aded6ba5b8e8a57177b2e29ea0005e01e086 (diff)
downloadbcm5719-llvm-093d4be5504f118a05a6c140eda38aa8924e7cb6.tar.gz
bcm5719-llvm-093d4be5504f118a05a6c140eda38aa8924e7cb6.zip
Remove some trivial uses of hasTrivialCopyConstructor() and
hasTrivialMoveConstructor(). llvm-svn: 151354
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ExprConstant.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 85aa5ee81ef..b69a805f785 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud