change some static_cast into cast, pointed out by Gabor.
authorChris Lattner <sabre@nondot.org>
Sat, 10 Oct 2009 08:01:27 +0000 (08:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Oct 2009 08:01:27 +0000 (08:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83703 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instructions.h

index 4ba7c084f07dc0896e91546f3d878bbbafb0891a..b28fcbb9516fea2fba62dae5fe8d71b4e43bd24f 100644 (file)
@@ -1913,7 +1913,7 @@ public:
   /// getIncomingBlock - Return incoming basic block #i.
   ///
   BasicBlock *getIncomingBlock(unsigned i) const {
-    return static_cast<BasicBlock*>(getOperand(i*2+1));
+    return cast<BasicBlock>(getOperand(i*2+1));
   }
   
   /// getIncomingBlock - Return incoming basic block corresponding
@@ -1921,7 +1921,7 @@ public:
   ///
   BasicBlock *getIncomingBlock(const Use &U) const {
     assert(this == U.getUser() && "Iterator doesn't point to PHI's Uses?");
-    return static_cast<BasicBlock*>((&U + 1)->get());
+    return cast<BasicBlock>((&U + 1)->get());
   }
   
   /// getIncomingBlock - Return incoming basic block corresponding