[cfe-commits] r131349 - /cfe/trunk/lib/Sema/SemaExpr.cpp

Sean Hunt scshunt at csclub.uwaterloo.ca
Sat May 14 11:20:50 PDT 2011


Author: coppro
Date: Sat May 14 13:20:50 2011
New Revision: 131349

URL: http://llvm.org/viewvc/llvm-project?rev=131349&view=rev
Log:
Make sure we actually generate defaulted copy constructors; caught by
Howard Hinnant. Thanks!

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=131349&r1=131348&r2=131349&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Sat May 14 13:20:50 2011
@@ -9857,7 +9857,7 @@
         return;
       if (!Constructor->isUsed(false))
         DefineImplicitDefaultConstructor(Loc, Constructor);
-    } else if (Constructor->isImplicit() &&
+    } else if (Constructor->isDefaulted() &&
                Constructor->isCopyConstructor()) {
       if (!Constructor->isUsed(false))
         DefineImplicitCopyConstructor(Loc, Constructor);





More information about the cfe-commits mailing list