Remove useless dynamic_cast<>().
authorTobias Grosser <grosser@fim.uni-passau.de>
Sun, 12 Dec 2010 21:58:28 +0000 (21:58 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Sun, 12 Dec 2010 21:58:28 +0000 (21:58 +0000)
Thanks Peter for pointing me to something that should have never been
committed to the llvm code base.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121648 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionPass.cpp

index a4145e15e4314182859b0b0542e447bc55a20ab0..3269dcc63d5e77d4c74c28e5196bccdb5f852b9f 100644 (file)
@@ -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);