forked from OSchip/llvm-project
Assert if isObjcIdType is called before 'id' type is built.
llvm-svn: 43484
This commit is contained in:
parent
843ebedde4
commit
31d05db565
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue