forked from OSchip/llvm-project
Fixed CXX struct and class initialization printing to support 'move'
type constructors. llvm-svn: 143309
This commit is contained in:
parent
a4eba41b7a
commit
921b9f52f4
|
@ -616,7 +616,7 @@ void DeclPrinter::VisitVarDecl(VarDecl *D) {
|
||||||
Out << "(";
|
Out << "(";
|
||||||
else {
|
else {
|
||||||
CXXConstructExpr *CCE = dyn_cast<CXXConstructExpr>(Init);
|
CXXConstructExpr *CCE = dyn_cast<CXXConstructExpr>(Init);
|
||||||
if (!CCE || CCE->getConstructor()->isCopyConstructor())
|
if (!CCE || CCE->getConstructor()->isCopyOrMoveConstructor())
|
||||||
Out << " = ";
|
Out << " = ";
|
||||||
}
|
}
|
||||||
Init->printPretty(Out, Context, 0, Policy, Indentation);
|
Init->printPretty(Out, Context, 0, Policy, Indentation);
|
||||||
|
|
Loading…
Reference in New Issue