[cfe-commits] r43484 - /cfe/trunk/include/clang/AST/ASTContext.h

Fariborz Jahanian fjahanian at apple.com
Mon Oct 29 17:01:08 PDT 2007


Author: fjahanian
Date: Mon Oct 29 19:00:49 2007
New Revision: 43484

URL: http://llvm.org/viewvc/llvm-project?rev=43484&view=rev
Log:
Assert if isObjcIdType is called before 'id' type is built.

Modified:
    cfe/trunk/include/clang/AST/ASTContext.h

Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=43484&r1=43483&r2=43484&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Mon Oct 29 19:00:49 2007
@@ -260,6 +260,7 @@
   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:





More information about the cfe-commits mailing list