diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-04-30 10:07:30 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-04-30 10:07:30 +0000 |
commit | ec997dc66627957bcdcd3db7906a68c1e14a279c (patch) | |
tree | 5ae1c99771643b6c3d2a4fd36f526200d2b97067 /lib/AST/Type.cpp | |
parent | 636a617cc6021a4366380b3ce673f4472f3d99db (diff) |
Rename the last '[hH]asStandardLayout' entites to '[iI]sStandardLayout'
based on Doug's preferences when we discussed this in IRC. This brings
the wording more in line with the standard.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index dbced252aa..d359265090 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -957,7 +957,7 @@ bool Type::isStandardLayoutType() const { if (const RecordType *RT = BaseTy->getAs<RecordType>()) { if (const CXXRecordDecl *ClassDecl = dyn_cast<CXXRecordDecl>(RT->getDecl())) - if (!ClassDecl->hasStandardLayout()) + if (!ClassDecl->isStandardLayout()) return false; // Default to 'true' for non-C++ class types. @@ -997,7 +997,7 @@ bool Type::isCXX11PODType() const { // C++11 [class]p10: // A POD struct is a non-union class that is both a trivial class and // a standard-layout class [...] - if (!ClassDecl->hasStandardLayout()) return false; + if (!ClassDecl->isStandardLayout()) return false; // C++11 [class]p10: // A POD struct is a non-union class that is both a trivial class and |