From: Argyrios Kyrtzidis Date: Tue, 24 Jan 2012 01:37:11 +0000 (+0000) Subject: In CXXRecordDecl::isCLike(), also check for PODness. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69b26d653829efe834eb18800f9ff33dff64beb4;p=clang In CXXRecordDecl::isCLike(), also check for PODness. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148765 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/DeclCXX.cpp b/lib/AST/DeclCXX.cpp index 7cf7bf1017..6db3efcd18 100644 --- a/lib/AST/DeclCXX.cpp +++ b/lib/AST/DeclCXX.cpp @@ -967,7 +967,8 @@ bool CXXRecordDecl::isCLike() const { if (!hasDefinition()) return true; - return data().HasOnlyFields && + return isPOD() && + data().HasOnlyFields && !data().HasPrivateFields && !data().HasProtectedFields && !data().NumBases;