Skip to content

Commit bf21156

Browse files
[IPO] Remove a redundant cast (NFC) (#168297)
Idx is already of type unsigned. Identified with readability-redundant-casting.
1 parent 99bf41c commit bf21156

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/IPO/IROutliner.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,8 +2108,7 @@ static void createAndInsertBasicBlocks(DenseMap<Value *, BasicBlock *> &OldMap,
21082108

21092109
for (Value *RetVal : SortedKeys) {
21102110
BasicBlock *NewBB = BasicBlock::Create(
2111-
ParentFunc->getContext(),
2112-
Twine(BaseName) + Twine("_") + Twine(static_cast<unsigned>(Idx++)),
2111+
ParentFunc->getContext(), Twine(BaseName) + Twine("_") + Twine(Idx++),
21132112
ParentFunc);
21142113
NewMap.insert(std::make_pair(RetVal, NewBB));
21152114
}

0 commit comments

Comments
 (0)