From 5d4115482ff6dfe6f8f0410049ebec3a7ad63db0 Mon Sep 17 00:00:00 2001 From: CristinaCristescu Date: Mon, 26 May 2014 17:57:34 +0200 Subject: [PATCH] Value extraction: not a record decl we have copy ctor by default. --- lib/Interpreter/ValueExtractionSynthesizer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Interpreter/ValueExtractionSynthesizer.cpp b/lib/Interpreter/ValueExtractionSynthesizer.cpp index 940206ab..19575826 100644 --- a/lib/Interpreter/ValueExtractionSynthesizer.cpp +++ b/lib/Interpreter/ValueExtractionSynthesizer.cpp @@ -184,8 +184,9 @@ namespace { if (CXXConstructorDecl* CD = S->LookupCopyingConstructor(RD, QT.getCVRQualifiers())) { if (CD ->getAccess() == clang::AccessSpecifier::AS_public) return true; } + return false; } - return false; + return true; } } @@ -287,6 +288,7 @@ namespace { // call copyArray(T* src, void* placement, int size) Call = m_Sema->ActOnCallExpr(/*Scope*/0, m_UnresolvedCopyArray, locStart, CallArgs, locEnd); + } else { TypeSourceInfo* ETSI