diff options
Diffstat (limited to 'lib/Analysis/InlineCost.cpp')
-rw-r--r-- | lib/Analysis/InlineCost.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp index d1c91a2a49..68d3d4676c 100644 --- a/lib/Analysis/InlineCost.cpp +++ b/lib/Analysis/InlineCost.cpp @@ -272,9 +272,9 @@ static unsigned countCodeReductionForAllocaICmp(const CodeMetrics &Metrics, /// The reduction for this instruction is added to the SROAReduction output /// parameter. Returns false if this instruction is expected to defeat SROA in /// general. -bool countCodeReductionForSROAInst(Instruction *I, - SmallVectorImpl<Value *> &Worklist, - unsigned &SROAReduction) { +static bool countCodeReductionForSROAInst(Instruction *I, + SmallVectorImpl<Value *> &Worklist, + unsigned &SROAReduction) { if (LoadInst *LI = dyn_cast<LoadInst>(I)) { if (!LI->isSimple()) return false; |