mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-10 14:10:58 +00:00
Remove unneeded const_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136506 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33768dba54
commit
95ece8efc0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user