diff options
author | Steve Naroff <snaroff@apple.com> | 2007-10-15 14:41:52 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-10-15 14:41:52 +0000 |
commit | 7e219e47de26346885d667131977bd9ca2d7662a (patch) | |
tree | 9b46962d0bb3d31b2dfd053fa78acf89cc4f0ea6 /AST/Type.cpp | |
parent | 954ea17353d3b24be52424bc287bdb6bef787fec (diff) |
Added ASTContext::setObjcIdType/getObjcIdType(), set by Sema.
Also noticed ASTContext::BuiltinVaListType wasn't being initialized to the null type (so I set it).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42983 91177308-0d34-0410-b5e6-96231b3b80d8
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"); |