Assert if isObjcIdType is called before 'id' type is built.

llvm-svn: 43484
This commit is contained in:
Fariborz Jahanian 2007-10-30 00:00:49 +00:00
parent 843ebedde4
commit 31d05db565
1 changed files with 1 additions and 0 deletions

View File

@ -260,6 +260,7 @@ public:
bool interfaceTypesAreCompatible(QualType, QualType);
bool objcTypesAreCompatible(QualType, QualType);
bool isObjcIdType(QualType T) const {
assert(IdStructType && "isObjcIdType used before 'id' type is built");
return T->getAsStructureType() == IdStructType;
}
private: