summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-04-28 13:37:45 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-04-28 13:37:45 +0000
commita81efed0bedd0771bf5ca9320d7cad8c89210028 (patch)
treecaa2f7e8a3dbd6335e51117e559f000be671debe /clang/lib
parent9e7876bf5a478f01babee90692a32c9e93bd1e11 (diff)
downloadbcm5719-llvm-a81efed0bedd0771bf5ca9320d7cad8c89210028.tar.gz
bcm5719-llvm-a81efed0bedd0771bf5ca9320d7cad8c89210028.zip
isCXX98PODType: Avoid dispatch on the language standard when recursing.
llvm-svn: 155758
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Type.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp
index 38b8e9f7582..fa71ecf4545 100644
--- a/clang/lib/AST/Type.cpp
+++ b/clang/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:
OpenPOWER on IntegriCloud