From ec997dc66627957bcdcd3db7906a68c1e14a279c Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 30 Apr 2011 10:07:30 +0000 Subject: 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 --- lib/AST/Type.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/AST/Type.cpp') 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()) { if (const CXXRecordDecl *ClassDecl = dyn_cast(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 -- cgit v1.2.3-18-g5258