Remove unneeded const_cast.

llvm-svn: 136506
This commit is contained in:
Jakub Staszak 2011-07-29 20:05:36 +00:00
parent e537438ca5
commit 539db98987
1 changed files with 2 additions and 2 deletions

View File

@ -1277,8 +1277,8 @@ uint32_t SelectionDAGBuilder::getEdgeWeight(MachineBasicBlock *Src,
BranchProbabilityInfo *BPI = FuncInfo.BPI;
if (!BPI)
return 0;
BasicBlock *SrcBB = const_cast<BasicBlock*>(Src->getBasicBlock());
BasicBlock *DstBB = const_cast<BasicBlock*>(Dst->getBasicBlock());
const BasicBlock *SrcBB = Src->getBasicBlock();
const BasicBlock *DstBB = Dst->getBasicBlock();
return BPI->getEdgeWeight(SrcBB, DstBB);
}