]> granicus.if.org Git - clang/commitdiff
Add a Class field to the base path element structure. This holds the record decl...
authorAnders Carlsson <andersca@mac.com>
Fri, 27 Mar 2009 18:54:29 +0000 (18:54 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 27 Mar 2009 18:54:29 +0000 (18:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67859 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaInherit.cpp
lib/Sema/SemaInherit.h

index c572f62d611b46503eb809f41844c2e615d2c352..cc495c5ea4947e347541d4633a109b73aaf0d812 100644 (file)
@@ -132,6 +132,7 @@ bool Sema::LookupInBases(CXXRecordDecl *Class,
       // Add this base specifier to the current path.
       BasePathElement Element;
       Element.Base = &*BaseSpec;
+      Element.Class = Class;
       if (BaseSpec->isVirtual())
         Element.SubobjectNumber = 0;
       else
index 8d008a2ce61f2324e9ed90269fac82817d9df4dd..6138685b2644fae276deb1da6d570924cc776650 100644 (file)
@@ -39,6 +39,9 @@ namespace clang {
     /// path element.
     const CXXBaseSpecifier *Base;
 
+    /// Class - The record decl of the class that the base is a base of.
+    const CXXRecordDecl *Class;
+    
     /// SubobjectNumber - Identifies which base class subobject (of type
     /// @c Base->getType()) this base path element refers to. This 
     /// value is only valid if @c !Base->isVirtual(), because there