Value extraction: not a record decl we have copy ctor by default.

This commit is contained in:
CristinaCristescu 2014-05-26 17:57:34 +02:00 committed by sftnight
parent 832390bc7b
commit 5d4115482f

View File

@ -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