File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ SILInstruction *AnalysisInfo::findNonisolatedBlame(SILInstruction* startInst) {
335335 llvm_unreachable (" failed to find nonisolated blame." );
336336}
337337
338- ValueDecl *findCallee (ApplySite &apply) {
338+ static ValueDecl *findCallee (ApplySite &apply) {
339339 SILValue callee = apply.getCalleeOrigin ();
340340
341341 auto check = [](ValueDecl *decl) -> ValueDecl* {
@@ -359,7 +359,7 @@ ValueDecl *findCallee(ApplySite &apply) {
359359 return nullptr ;
360360}
361361
362- StringRef verbForInvoking (ValueDecl *value) {
362+ static StringRef verbForInvoking (ValueDecl *value) {
363363 // Only computed properties need a different verb.
364364 if (isa<AbstractStorageDecl>(value))
365365 return " accessing " ;
@@ -371,7 +371,7 @@ StringRef verbForInvoking(ValueDecl *value) {
371371// / introducing non-isolation, this function produces the values needed
372372// / to describe it to the user. Thus, the implementation of this function is
373373// / closely tied to that diagnostic.
374- std::tuple<StringRef, StringRef, DeclName>
374+ static std::tuple<StringRef, StringRef, DeclName>
375375describe (SILInstruction *blame) {
376376 auto &ctx = blame->getModule ().getASTContext ();
377377
You can’t perform that action at this time.
0 commit comments