diff options
author | Anders Carlsson <andersca@mac.com> | 2010-02-27 19:21:58 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-02-27 19:21:58 +0000 |
commit | 6a8c5b2bc266902a3d1138122ef25cbe10e1687b (patch) | |
tree | a969fc2240f6ab04fc31c2eb5c4fc22f5adb4f57 /lib/CodeGen/CGVtable.cpp | |
parent | e54d1c12d7a53bea988e2b880b66faf04410c1be (diff) |
Use the real base offset when calculating vbase offsets.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index 399b921b52..b7f8fe77ea 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -971,7 +971,7 @@ VCallAndVBaseOffsetBuilder::AddVCallAndVBaseOffsets(BaseSubobject Base, } // FIXME: Don't use /8 here. - int64_t OffsetToTop = -(int64_t)Base.getBaseOffset() / 8; + int64_t OffsetToTop = -(int64_t)RealBaseOffset / 8; AddVBaseOffsets(Base.getBase(), OffsetToTop); // We only want to add vcall offsets for virtual bases. |