summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGRTTI.cpp
diff options
context:
space:
mode:
authorKen Dyck <kd@kendyck.com>2011-04-07 12:37:09 +0000
committerKen Dyck <kd@kendyck.com>2011-04-07 12:37:09 +0000
commitbb4e977218dbc610d8fc9e475e46c8bc3ee07da1 (patch)
tree781084ac6771ef83c9424039c5df7b8449d8bc12 /clang/lib/CodeGen/CGRTTI.cpp
parentf6e259049dab79b42142853f51af06eb8e222de7 (diff)
downloadbcm5719-llvm-bb4e977218dbc610d8fc9e475e46c8bc3ee07da1.tar.gz
bcm5719-llvm-bb4e977218dbc610d8fc9e475e46c8bc3ee07da1.zip
[Reapply r128776, modified so that it does not break debug info.]
Change the return type of CodeGenVTables::getVirtualBaseOffsetOffset() to CharUnits. No change in functionality intended. llvm-svn: 129072
Diffstat (limited to 'clang/lib/CodeGen/CGRTTI.cpp')
-rw-r--r--clang/lib/CodeGen/CGRTTI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp
index 07266410300..fb89f4ca008 100644
--- a/clang/lib/CodeGen/CGRTTI.cpp
+++ b/clang/lib/CodeGen/CGRTTI.cpp
@@ -878,7 +878,8 @@ void RTTIBuilder::BuildVMIClassTypeInfo(const CXXRecordDecl *RD) {
// subobject. For a virtual base, this is the offset in the virtual table of
// the virtual base offset for the virtual base referenced (negative).
if (Base->isVirtual())
- OffsetFlags = CGM.getVTables().getVirtualBaseOffsetOffset(RD, BaseDecl);
+ OffsetFlags =
+ CGM.getVTables().getVirtualBaseOffsetOffset(RD, BaseDecl).getQuantity();
else {
const ASTRecordLayout &Layout = CGM.getContext().getASTRecordLayout(RD);
OffsetFlags = Layout.getBaseClassOffsetInBits(BaseDecl) / 8;
OpenPOWER on IntegriCloud