Skip to content

Commit 0827390

Browse files
committed
[NFC] Marked endLexicalLifetimeInBlock static.
The function is currently only (and only ever intended to be) used only within SILMem2Reg.
1 parent c2fd49c commit 0827390

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/SILOptimizer/Transforms/SILMem2Reg.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,10 @@ beginLexicalLifetimeAtStore(AllocStackInst *asi, StoreInst *si,
342342
/// They should be added after the value is done being used. If the value is
343343
/// ever used, that means after the last use. Otherwise, it means immediately
344344
/// after the definition.
345-
void endLexicalLifetimeInBlock(AllocStackInst *asi, SILBasicBlock *bb,
346-
SILBuilderContext &ctx, DominanceInfo *domInfo,
347-
SILValue copy, SILValue borrow,
348-
SILValue original) {
345+
static void endLexicalLifetimeInBlock(AllocStackInst *asi, SILBasicBlock *bb,
346+
SILBuilderContext &ctx,
347+
DominanceInfo *domInfo, SILValue copy,
348+
SILValue borrow, SILValue original) {
349349
assert(shouldAddLexicalLifetime(asi));
350350
SILInstruction *lastInst = nullptr;
351351
if (auto *cvi = copy->getDefiningInstruction()) {

0 commit comments

Comments
 (0)