aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInherit.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-03-27 18:54:29 +0000
committerAnders Carlsson <andersca@mac.com>2009-03-27 18:54:29 +0000
commit77bd57c4ac7cfdef0b263784ba227ba399e9d69b (patch)
treec3612dea6558516ffdfb792f5cf02e3b4f95140f /lib/Sema/SemaInherit.cpp
parent10d8379676f32b493740a5509e2cd7f0d6433139 (diff)
Add a Class field to the base path element structure. This holds the record decl of the class taht the base is a base of.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInherit.cpp')
-rw-r--r--lib/Sema/SemaInherit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaInherit.cpp b/lib/Sema/SemaInherit.cpp
index c572f62d61..cc495c5ea4 100644
--- a/lib/Sema/SemaInherit.cpp
+++ b/lib/Sema/SemaInherit.cpp
@@ -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