]> granicus.if.org Git - clang/commitdiff
Fix ObjCInterfaceTypeLoc to inherit from ObjCObjectTypeLoc so as to match the
authorNick Lewycky <nicholas@mxc.ca>
Sun, 4 Jul 2010 01:41:30 +0000 (01:41 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 4 Jul 2010 01:41:30 +0000 (01:41 +0000)
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).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107578 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/TypeLoc.h

index ef2b0542e7ba5ae3d170d7973a2a5e92ffbd0d94..842c06878453d58bf0915952644198262234f050 100644 (file)
@@ -657,7 +657,7 @@ struct ObjCInterfaceLocInfo {
 };
 
 /// \brief Wrapper for source info for ObjC interfaces.
-class ObjCInterfaceTypeLoc : public ConcreteTypeLoc<UnqualTypeLoc,
+class ObjCInterfaceTypeLoc : public ConcreteTypeLoc<ObjCObjectTypeLoc,
                                                     ObjCInterfaceTypeLoc,
                                                     ObjCInterfaceType,
                                                     ObjCInterfaceLocInfo> {