]> granicus.if.org Git - clang/commitdiff
Remove redundant checks in CXXRecordDecl::isCLike(), as suggested by Sebastian.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 1 Feb 2012 06:36:44 +0000 (06:36 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 1 Feb 2012 06:36:44 +0000 (06:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149476 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclCXX.cpp

index afd23f66a35decd5003665db8457cd2ab499b59e..931b7cbf2157f30be0792c0cb48726365f889b87 100644 (file)
@@ -970,11 +970,7 @@ bool CXXRecordDecl::isCLike() const {
   if (!hasDefinition())
     return true;
 
-  return isPOD() &&
-      data().HasOnlyCMembers &&
-      !data().HasPrivateFields &&
-      !data().HasProtectedFields &&
-      !data().NumBases;
+  return isPOD() && data().HasOnlyCMembers;
 }
 
 static CanQualType GetConversionType(ASTContext &Context, NamedDecl *Conv) {