summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-11 20:34:43 +0000
committerDan Gohman <gohman@apple.com>2010-08-11 20:34:43 +0000
commitbd4d66d56a4e761a206dac14ccff4d37139d9ad9 (patch)
treeae322117d7e67b44f48d683ee7d0d4acea91c9cb /include
parentfa5c2a67c38da929ef98c2a814fbac93404fb814 (diff)
downloadllvm-bd4d66d56a4e761a206dac14ccff4d37139d9ad9.tar.gz
llvm-bd4d66d56a4e761a206dac14ccff4d37139d9ad9.tar.bz2
llvm-bd4d66d56a4e761a206dac14ccff4d37139d9ad9.tar.xz
Make LoopPass::getContainedPass return a LoopPass* instead of a Pass*
and remove casts from all its callers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/LoopPass.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h
index 1e59b969e4..1603d2ea7a 100644
--- a/include/llvm/Analysis/LoopPass.h
+++ b/include/llvm/Analysis/LoopPass.h
@@ -104,10 +104,10 @@ public:
/// Print passes managed by this manager
void dumpPassStructure(unsigned Offset);
- Pass *getContainedPass(unsigned N) {
+ LoopPass *getContainedPass(unsigned N) {
assert(N < PassVector.size() && "Pass number out of range!");
- Pass *FP = static_cast<Pass *>(PassVector[N]);
- return FP;
+ LoopPass *LP = static_cast<LoopPass *>(PassVector[N]);
+ return LP;
}
virtual PassManagerType getPassManagerType() const {