Fixed CXX struct and class initialization printing to support 'move'

type constructors.

llvm-svn: 143309
This commit is contained in:
Jim Goodnow II 2011-10-30 11:17:39 +00:00
parent a4eba41b7a
commit 921b9f52f4
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ void DeclPrinter::VisitVarDecl(VarDecl *D) {
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);