isCXX98PODType: Avoid dispatch on the language standard when recursing.

llvm-svn: 155758
This commit is contained in:
Benjamin Kramer 2012-04-28 13:37:45 +00:00
parent 9e7876bf5a
commit a81efed0be
1 changed files with 2 additions and 2 deletions

View File

@ -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: