From 6a8c5b2bc266902a3d1138122ef25cbe10e1687b Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 27 Feb 2010 19:21:58 +0000 Subject: 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 --- lib/CodeGen/CGVtable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CGVtable.cpp') 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. -- cgit v1.2.3-18-g5258