[llvm-commits] [llvm] r83703 - /llvm/trunk/include/llvm/Instructions.h
Chris Lattner
sabre at nondot.org
Sat Oct 10 01:01:32 PDT 2009
Author: lattner
Date: Sat Oct 10 03:01:27 2009
New Revision: 83703
URL: http://llvm.org/viewvc/llvm-project?rev=83703&view=rev
Log:
change some static_cast into cast, pointed out by Gabor.
Modified:
llvm/trunk/include/llvm/Instructions.h
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=83703&r1=83702&r2=83703&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Sat Oct 10 03:01:27 2009
@@ -1913,7 +1913,7 @@
/// 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 @@
///
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
More information about the llvm-commits
mailing list