r183300 - Fix fallout from r183298, unused function (CollectPrimaryBases) causing the -Werror build to fail

David Blaikie dblaikie at gmail.com
Tue Jun 4 23:50:40 PDT 2013


Author: dblaikie
Date: Wed Jun  5 01:50:40 2013
New Revision: 183300

URL: http://llvm.org/viewvc/llvm-project?rev=183300&view=rev
Log:
Fix fallout from r183298, unused function (CollectPrimaryBases) causing the -Werror build to fail

Modified:
    cfe/trunk/lib/AST/VTableBuilder.cpp

Modified: cfe/trunk/lib/AST/VTableBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/VTableBuilder.cpp?rev=183300&r1=183299&r2=183300&view=diff
==============================================================================
--- cfe/trunk/lib/AST/VTableBuilder.cpp (original)
+++ cfe/trunk/lib/AST/VTableBuilder.cpp Wed Jun  5 01:50:40 2013
@@ -2280,21 +2280,6 @@ VTableContext::~VTableContext() {
   llvm::DeleteContainerSeconds(VTableLayouts);
 }
 
-static void 
-CollectPrimaryBases(const CXXRecordDecl *RD, ASTContext &Context,
-                    VTableBuilder::PrimaryBasesSetVectorTy &PrimaryBases) {
-  const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD);
-  const CXXRecordDecl *PrimaryBase = Layout.getPrimaryBase();
-
-  if (!PrimaryBase)
-    return;
-
-  CollectPrimaryBases(PrimaryBase, Context, PrimaryBases);
-
-  if (!PrimaryBases.insert(PrimaryBase))
-    llvm_unreachable("Found a duplicate primary base!");
-}
-
 uint64_t VTableContext::getMethodVTableIndex(GlobalDecl GD) {
   MethodVTableIndicesTy::iterator I = MethodVTableIndices.find(GD);
   if (I != MethodVTableIndices.end())





More information about the cfe-commits mailing list