summaryrefslogtreecommitdiff
path: root/include/llvm/Instructions.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-10 08:01:27 +0000
committerChris Lattner <sabre@nondot.org>2009-10-10 08:01:27 +0000
commitfc61aeff2c5d964d81a63b709b5e1a50a5519e83 (patch)
treecbe3376df3db1e1047f65f8f6e1c3a81f0056023 /include/llvm/Instructions.h
parentceaa457a9d1ec567862e71125447479304942c12 (diff)
downloadllvm-fc61aeff2c5d964d81a63b709b5e1a50a5519e83.tar.gz
llvm-fc61aeff2c5d964d81a63b709b5e1a50a5519e83.tar.bz2
llvm-fc61aeff2c5d964d81a63b709b5e1a50a5519e83.tar.xz
change some static_cast into cast, pointed out by Gabor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 4ba7c084f0..b28fcbb951 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -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