diff options
Diffstat (limited to 'AST/Type.cpp')
-rw-r--r-- | AST/Type.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/AST/Type.cpp b/AST/Type.cpp index 87090978b4..70dce2c495 100644 --- a/AST/Type.cpp +++ b/AST/Type.cpp @@ -268,6 +268,8 @@ bool Type::builtinTypesAreCompatible(QualType lhs, QualType rhs) { } // FIXME: Devise a way to do this without using strcmp. +// Would like to say..."return getAsStructureType() == IdStructType;", but +// we don't have a pointer to ASTContext. bool Type::isObjcIdType() const { if (const RecordType *RT = getAsStructureType()) return !strcmp(RT->getDecl()->getName(), "objc_object"); |