diff options
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 60cb4c5c23..d528e0c4b7 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -102,7 +102,7 @@ void ConstStructBuilder::AppendVTablePointer(BaseSubobject Base, llvm::ConstantExpr::getInBoundsGetElementPtr(VTable, Indices); // Add the vtable at the start of the object. - AppendBytes(CharUnits::Zero(), VTableAddressPoint); + AppendBytes(Base.getBaseOffset(), VTableAddressPoint); } void ConstStructBuilder:: |