diff options
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index fcf49e171a..e852452d75 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -187,7 +187,7 @@ static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) { return Changed; } -static bool doit(Method *M, cfg::LoopInfo &Loops) { +static bool doit(Function *M, cfg::LoopInfo &Loops) { // Induction Variables live in the header nodes of the loops of the method... return reduce_apply_bool(Loops.getTopLevelLoops().begin(), Loops.getTopLevelLoops().end(), @@ -197,8 +197,8 @@ static bool doit(Method *M, cfg::LoopInfo &Loops) { namespace { struct InductionVariableSimplify : public MethodPass { - virtual bool runOnMethod(Method *M) { - return doit(M, getAnalysis<cfg::LoopInfo>()); + virtual bool runOnMethod(Function *F) { + return doit(F, getAnalysis<cfg::LoopInfo>()); } virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Required, |