Skip to content

Commit b454062

Browse files
[Hexagon] Remove an unnecessary cast (NFC) (#148870)
SB is already of MachineBasicBlock *SB.
1 parent 39dd6cd commit b454062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ bool MachineConstPropagator::rewrite(MachineFunction &MF) {
10051005
SmallVector<MachineBasicBlock*,2> ToRemove;
10061006
for (MachineBasicBlock *SB : B->successors()) {
10071007
if (!Targets.count(SB))
1008-
ToRemove.push_back(const_cast<MachineBasicBlock*>(SB));
1008+
ToRemove.push_back(SB);
10091009
Targets.remove(SB);
10101010
}
10111011
for (MachineBasicBlock *MBB : ToRemove)

0 commit comments

Comments
 (0)