Skip to content

Commit 54e99f6

Browse files
committed
mark some utilities as static
1 parent 9a6012e commit 54e99f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/SILOptimizer/Mandatory/FlowIsolation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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>
375375
describe(SILInstruction *blame) {
376376
auto &ctx = blame->getModule().getASTContext();
377377

0 commit comments

Comments
 (0)