diff --git a/clang/lib/AST/VTableBuilder.cpp b/clang/lib/AST/VTableBuilder.cpp index 81970f13c401..9067b4bd59bb 100644 --- a/clang/lib/AST/VTableBuilder.cpp +++ b/clang/lib/AST/VTableBuilder.cpp @@ -3125,8 +3125,8 @@ static void EnumerateVFPtrs( } } -void EnumerateVFPtrs(ASTContext &Context, const CXXRecordDecl *ForClass, - MicrosoftVFTableContext::VFPtrListTy &Result) { +static void EnumerateVFPtrs(ASTContext &Context, const CXXRecordDecl *ForClass, + MicrosoftVFTableContext::VFPtrListTy &Result) { Result.clear(); const ASTRecordLayout &ClassLayout = Context.getASTRecordLayout(ForClass); BasesSetVectorTy VisitedVBases;