summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/AST/DeclPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp
index 08a1ab5723c..d3c9c7a1ec7 100644
--- a/clang/lib/AST/DeclPrinter.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud