]> granicus.if.org Git - clang/commitdiff
Assert if isObjcIdType is called before 'id' type is built.
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 30 Oct 2007 00:00:49 +0000 (00:00 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 30 Oct 2007 00:00:49 +0000 (00:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43484 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h

index 48e7e13c909667b1157795464e8a0319d96cc8e2..9adb35aca2dbf3357ca30e84540d24e8025c8e8f 100644 (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: