diff options
author | Mike Stump <mrs@apple.com> | 2009-08-12 22:06:55 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-08-12 22:06:55 +0000 |
commit | 02b16238a39d9b83674c3a531b6aaaf066ac95f2 (patch) | |
tree | dea291b93e82ac557c9c86516f895a8d431510f9 | |
parent | d76264e0b20470267249660ab947197cf6d6e31f (diff) |
Refactor a bit and remove some FIXME audit markers, now that the code
has been audited for correctness.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78846 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/RecordLayoutBuilder.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/AST/RecordLayoutBuilder.cpp b/lib/AST/RecordLayoutBuilder.cpp index 2a7477c449..91a66a3253 100644 --- a/lib/AST/RecordLayoutBuilder.cpp +++ b/lib/AST/RecordLayoutBuilder.cpp @@ -27,8 +27,7 @@ ASTRecordLayoutBuilder::ASTRecordLayoutBuilder(ASTContext &Ctx) /// LayoutVtable - Lay out the vtable and set PrimaryBase. void ASTRecordLayoutBuilder::LayoutVtable(const CXXRecordDecl *RD) { - // FIXME: audit indirect virtual bases - if (!RD->isPolymorphic() && !RD->getNumVBases()) { + if (!RD->isDynamicClass()) { // There is no primary base in this case. setPrimaryBase(0, false); return; @@ -141,7 +140,6 @@ void ASTRecordLayoutBuilder::SelectPrimaryBase(const CXXRecordDecl *RD) { // If we have no virtual bases at this point, bail out as the searching below // is expensive. - // FIXME: audit indirect virtual bases if (RD->getNumVBases() == 0) { return; } |