diff options
author | Anders Carlsson <andersca@mac.com> | 2010-04-20 16:22:16 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-04-20 16:22:16 +0000 |
commit | 36fd6beef1ffaf93217d8ce96d900d4ed817e463 (patch) | |
tree | 23f7f9f4744507e22b022889ddd19d458edaf431 /lib/CodeGen/CodeGenFunction.h | |
parent | 9dc228a1b971aa884766a9bdfdf5fa8ee4730b5b (diff) |
Fix a bug which triggered the assertion I added yesterday. Basically, when we initialize the vtable pointer for a virtual base, and there was another path from the most derived class to another base with the same class type, we would use the wrong base.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index c43e0006e6..12e37e42d7 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -536,12 +536,14 @@ public: /// void InitializeVTablePointer(BaseSubobject Base, const CXXRecordDecl *NearestVBase, + uint64_t BaseOffsetFromNearestVBase, llvm::Constant *VTable, const CXXRecordDecl *VTableClass); typedef llvm::SmallPtrSet<const CXXRecordDecl *, 4> VisitedVirtualBasesSetTy; void InitializeVTablePointers(BaseSubobject Base, const CXXRecordDecl *NearestVBase, + uint64_t BaseOffsetFromNearestVBase, bool BaseIsNonVirtualPrimaryBase, llvm::Constant *VTable, const CXXRecordDecl *VTableClass, |