aboutsummaryrefslogtreecommitdiff
path: root/AST/Type.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-10-15 14:41:52 +0000
committerSteve Naroff <snaroff@apple.com>2007-10-15 14:41:52 +0000
commit7e219e47de26346885d667131977bd9ca2d7662a (patch)
tree9b46962d0bb3d31b2dfd053fa78acf89cc4f0ea6 /AST/Type.cpp
parent954ea17353d3b24be52424bc287bdb6bef787fec (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.cpp2
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");