diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AST/DeclPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<CXXConstructExpr>(Init); - if (!CCE || CCE->getConstructor()->isCopyConstructor()) + if (!CCE || CCE->getConstructor()->isCopyOrMoveConstructor()) Out << " = "; } Init->printPretty(Out, Context, 0, Policy, Indentation); |