Skip to content

Commit 0624f25

Browse files
goldsteinnAlexisPerry
authored andcommitted
[CodeGenPrepare] Add missing static decl on matchIncrement(); NFC
1 parent 73c9fa4 commit 0624f25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/CodeGenPrepare.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,8 +1499,8 @@ static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI,
14991499
// Match a simple increment by constant operation. Note that if a sub is
15001500
// matched, the step is negated (as if the step had been canonicalized to
15011501
// an add, even though we leave the instruction alone.)
1502-
bool matchIncrement(const Instruction *IVInc, Instruction *&LHS,
1503-
Constant *&Step) {
1502+
static bool matchIncrement(const Instruction *IVInc, Instruction *&LHS,
1503+
Constant *&Step) {
15041504
if (match(IVInc, m_Add(m_Instruction(LHS), m_Constant(Step))) ||
15051505
match(IVInc, m_ExtractValue<0>(m_Intrinsic<Intrinsic::uadd_with_overflow>(
15061506
m_Instruction(LHS), m_Constant(Step)))))

0 commit comments

Comments
 (0)