summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/LoopPass.h2
-rw-r--r--llvm/lib/Analysis/LoopPass.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Analysis/LoopPass.h b/llvm/include/llvm/Analysis/LoopPass.h
index 2fd14f2dad4..7b878abadf1 100644
--- a/llvm/include/llvm/Analysis/LoopPass.h
+++ b/llvm/include/llvm/Analysis/LoopPass.h
@@ -32,7 +32,7 @@ class LoopPass : public Pass {
public:
// runOnLoop - THis method should be implemented by the subclass to perform
// whatever action is necessary for the specfied Loop.
- virtual bool runOnLoop (Loop &L, LPPassManager &LPM) = 0;
+ virtual bool runOnLoop (Loop *L, LPPassManager &LPM) = 0;
virtual bool runOnFunctionBody (Function &F, LPPassManager &LPM) {
return false;
}
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp
index 425e46e6e0b..26e50615640 100644
--- a/llvm/lib/Analysis/LoopPass.cpp
+++ b/llvm/lib/Analysis/LoopPass.cpp
@@ -116,7 +116,7 @@ bool LPPassManager::runOnFunction(Function &F) {
StartPassTimer(P);
LoopPass *LP = dynamic_cast<LoopPass *>(P);
assert (LP && "Invalid LPPassManager member");
- LP->runOnLoop(*L, *this);
+ LP->runOnLoop(L, *this);
StopPassTimer(P);
if (Changed)
OpenPOWER on IntegriCloud