From: Jim Goodnow II Date: Sun, 30 Oct 2011 11:17:39 +0000 (+0000) Subject: Fixed CXX struct and class initialization printing to support 'move' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5eca37c7fe233dce58ea41fc364680724885144d;p=clang Fixed CXX struct and class initialization printing to support 'move' type constructors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143309 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index 08a1ab5723..d3c9c7a1ec 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/lib/AST/DeclPrinter.cpp @@ -616,7 +616,7 @@ void DeclPrinter::VisitVarDecl(VarDecl *D) { Out << "("; else { CXXConstructExpr *CCE = dyn_cast(Init); - if (!CCE || CCE->getConstructor()->isCopyConstructor()) + if (!CCE || CCE->getConstructor()->isCopyOrMoveConstructor()) Out << " = "; } Init->printPretty(Out, Context, 0, Policy, Indentation);