Make function static that didn't need linkage.
authorErich Keane <erich.keane@intel.com>
Mon, 30 Sep 2019 21:24:04 +0000 (21:24 +0000)
committerErich Keane <erich.keane@intel.com>
Mon, 30 Sep 2019 21:24:04 +0000 (21:24 +0000)
In r373247 I added a helper function, but neglected to make it static.

llvm-svn: 373268

clang/lib/AST/DeclCXX.cpp

index 5f181fa..95b14e4 100644 (file)
@@ -1399,7 +1399,7 @@ static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) {
 }
 #endif
 
-NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) {
+static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) {
   if (!RD.isLambda()) return nullptr;
   DeclarationName Name =
     RD.getASTContext().DeclarationNames.getCXXOperatorName(OO_Call);