mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-04 08:16:49 +00:00
Remove redundant checks in CXXRecordDecl::isCLike(), as suggested by Sebastian.
llvm-svn: 149476
This commit is contained in:
parent
e1d61f666b
commit
c3c9ee5623
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user