From: Benjamin Kramer Date: Sat, 28 Apr 2012 13:37:45 +0000 (+0000) Subject: isCXX98PODType: Avoid dispatch on the language standard when recursing. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8907832ddee33d8a0b0d8432d4c7470360353d67;p=clang isCXX98PODType: Avoid dispatch on the language standard when recursing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155758 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 38b8e9f758..fa71ecf454 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -910,7 +910,7 @@ bool QualType::isCXX98PODType(ASTContext &Context) const { return 0; if ((*this)->isIncompleteArrayType()) - return Context.getBaseElementType(*this).isPODType(Context); + return Context.getBaseElementType(*this).isCXX98PODType(Context); if ((*this)->isIncompleteType()) return false; @@ -937,7 +937,7 @@ bool QualType::isCXX98PODType(ASTContext &Context) const { case Type::VariableArray: case Type::ConstantArray: // IncompleteArray is handled above. - return Context.getBaseElementType(*this).isPODType(Context); + return Context.getBaseElementType(*this).isCXX98PODType(Context); case Type::ObjCObjectPointer: case Type::BlockPointer: