[cfe-commits] r143309 - /cfe/trunk/lib/AST/DeclPrinter.cpp

Jim Goodnow II jim at thegoodnows.net
Sun Oct 30 04:17:39 PDT 2011


Author: jgoodnowii
Date: Sun Oct 30 06:17:39 2011
New Revision: 143309

URL: http://llvm.org/viewvc/llvm-project?rev=143309&view=rev
Log:
Fixed CXX struct and class initialization printing to support 'move'
type constructors.

Modified:
    cfe/trunk/lib/AST/DeclPrinter.cpp

Modified: cfe/trunk/lib/AST/DeclPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclPrinter.cpp?rev=143309&r1=143308&r2=143309&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclPrinter.cpp (original)
+++ cfe/trunk/lib/AST/DeclPrinter.cpp Sun Oct 30 06:17:39 2011
@@ -616,7 +616,7 @@
       Out << "(";
     else {
         CXXConstructExpr *CCE = dyn_cast<CXXConstructExpr>(Init);
-        if (!CCE || CCE->getConstructor()->isCopyConstructor())
+        if (!CCE || CCE->getConstructor()->isCopyOrMoveConstructor())
           Out << " = ";
     }
     Init->printPretty(Out, Context, 0, Policy, Indentation);





More information about the cfe-commits mailing list