summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/RegionPass.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2010-12-12 21:58:28 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2010-12-12 21:58:28 +0000
commitf3e1ada5225dcf52b0c0cda65b2caae7fc6c2cbb (patch)
treed21384e01b507f3457c3ace4bc4fde5a27f18b6c /llvm/lib/Analysis/RegionPass.cpp
parentbfae66ae1d5a8d317505c5b08cee6cb64e621a98 (diff)
downloadbcm5719-llvm-f3e1ada5225dcf52b0c0cda65b2caae7fc6c2cbb.tar.gz
bcm5719-llvm-f3e1ada5225dcf52b0c0cda65b2caae7fc6c2cbb.zip
Remove useless dynamic_cast<>().
Thanks Peter for pointing me to something that should have never been committed to the llvm code base. llvm-svn: 121648
Diffstat (limited to 'llvm/lib/Analysis/RegionPass.cpp')
-rw-r--r--llvm/lib/Analysis/RegionPass.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/RegionPass.cpp b/llvm/lib/Analysis/RegionPass.cpp
index a4145e15e43..3269dcc63d5 100644
--- a/llvm/lib/Analysis/RegionPass.cpp
+++ b/llvm/lib/Analysis/RegionPass.cpp
@@ -259,8 +259,7 @@ void RegionPass::assignPassManager(PMStack &PMS,
// [3] Assign manager to manage this new manager. This may create
// and push new managers into PMS
- Pass *P = dynamic_cast<Pass *>(RGPM);
- TPM->schedulePass(P);
+ TPM->schedulePass(RGPM);
// [4] Push new manager into PMS
PMS.push(RGPM);
OpenPOWER on IntegriCloud