From 5eca37c7fe233dce58ea41fc364680724885144d Mon Sep 17 00:00:00 2001
From: Jim Goodnow II <jim@thegoodnows.net>
Date: Sun, 30 Oct 2011 11:17:39 +0000
Subject: [PATCH] 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
---
 lib/AST/DeclPrinter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp
index 08a1ab5723c..d3c9c7a1ec7 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);
-- 
GitLab