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 08a1ab5..d3c9c7a 100644
--- a/lib/AST/DeclPrinter.cpp
+++ b/lib/AST/DeclPrinter.cpp
@@ -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);