diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-07-04 18:45:14 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-07-04 18:45:14 +0000 |
commit | d4f5198ae07d9a4958d8191bac694ded12173ad9 (patch) | |
tree | 5b10f375d5006dba4c4241a61bdc47426d4303ba /lib/CodeGen/CGCXX.cpp | |
parent | 478851c3ed6bd784e7377dffd8e57b200c1b9ba9 (diff) |
Remove get(V)BaseClassOffsetInBits, the CharUnit functions should be used instead.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 18e2a1613b..003fef520c 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -91,7 +91,7 @@ bool CodeGenModule::TryEmitBaseDestructorAsAlias(const CXXDestructorDecl *D) { // If the base is at a non-zero offset, give up. const ASTRecordLayout &ClassLayout = Context.getASTRecordLayout(Class); - if (ClassLayout.getBaseClassOffsetInBits(UniqueBase) != 0) + if (!ClassLayout.getBaseClassOffset(UniqueBase).isZero()) return true; return TryEmitDefinitionAsAlias(GlobalDecl(D, Dtor_Base), |