]> granicus.if.org Git - clang/commitdiff
Remove some code left around for debugging purposes
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 1 May 2015 21:42:19 +0000 (21:42 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 1 May 2015 21:42:19 +0000 (21:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236355 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/VTableBuilder.cpp

index 5c7b9d2a6820fc60ad783d3f179fd374e876b110..615c955e072b63c74c5b964803c69fe491800997 100644 (file)
@@ -3483,18 +3483,6 @@ static bool findPathForVPtr(ASTContext &Context,
 
   CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/false,
                      /*DetectVirtual=*/true);
-#if 0
-  std::vector<const CXXRecordDecl *> 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.