r373268 - Make function static that didn't need linkage.
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 30 14:24:04 PDT 2019
Author: erichkeane
Date: Mon Sep 30 14:24:04 2019
New Revision: 373268
URL: http://llvm.org/viewvc/llvm-project?rev=373268&view=rev
Log:
Make function static that didn't need linkage.
In r373247 I added a helper function, but neglected to make it static.
Modified:
cfe/trunk/lib/AST/DeclCXX.cpp
Modified: cfe/trunk/lib/AST/DeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclCXX.cpp?rev=373268&r1=373267&r2=373268&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclCXX.cpp (original)
+++ cfe/trunk/lib/AST/DeclCXX.cpp Mon Sep 30 14:24:04 2019
@@ -1399,7 +1399,7 @@ static bool allLookupResultsAreTheSame(c
}
#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);
More information about the cfe-commits
mailing list