From: David Majnemer Date: Fri, 1 May 2015 21:42:19 +0000 (+0000) Subject: Remove some code left around for debugging purposes X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f1661579b1a664be0acf04c212bb3e68bee9355;p=clang Remove some code left around for debugging purposes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236355 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/VTableBuilder.cpp b/lib/AST/VTableBuilder.cpp index 5c7b9d2a68..615c955e07 100644 --- a/lib/AST/VTableBuilder.cpp +++ b/lib/AST/VTableBuilder.cpp @@ -3483,18 +3483,6 @@ static bool findPathForVPtr(ASTContext &Context, CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/false, /*DetectVirtual=*/true); -#if 0 - std::vector BaseLists; - for (const auto &B : RD->bases()) { - const CXXRecordDecl *Base = B.getType()->getAsCXXRecordDecl(); - Paths.clear(); - if (!Base->isDerivedFrom(Info->BaseWithVPtr, Paths)) - continue; - for (const auto &Chain : BaseLists) { - const CXXRecordDecl *MostDerived = Chain.front(); - } - } -#endif // All virtual bases which are on the path to the BaseWithVPtr are not equal. // Specifically, virtual paths which introduce additional covariant thunks // must be preferred over paths which do not introduce such thunks.