[cfe-commits] r107578 - /cfe/trunk/include/clang/AST/TypeLoc.h

Nick Lewycky nicholas at mxc.ca
Sat Jul 3 18:41:31 PDT 2010


Author: nicholas
Date: Sat Jul  3 20:41:30 2010
New Revision: 107578

URL: http://llvm.org/viewvc/llvm-project?rev=107578&view=rev
Log:
Fix ObjCInterfaceTypeLoc to inherit from ObjCObjectTypeLoc so as to match the
Type hierarchy. Without this, TypeLocNodes.def will give you wrong type
hierarchy information (claiming that ObjCObjectTypeLoc is the base of
ObjCInterfaceTypeLoc, which it wasn't).

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

Modified: cfe/trunk/include/clang/AST/TypeLoc.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeLoc.h?rev=107578&r1=107577&r2=107578&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TypeLoc.h (original)
+++ cfe/trunk/include/clang/AST/TypeLoc.h Sat Jul  3 20:41:30 2010
@@ -657,7 +657,7 @@
 };
 
 /// \brief Wrapper for source info for ObjC interfaces.
-class ObjCInterfaceTypeLoc : public ConcreteTypeLoc<UnqualTypeLoc,
+class ObjCInterfaceTypeLoc : public ConcreteTypeLoc<ObjCObjectTypeLoc,
                                                     ObjCInterfaceTypeLoc,
                                                     ObjCInterfaceType,
                                                     ObjCInterfaceLocInfo> {





More information about the cfe-commits mailing list