Skip to content

Commit e6fb012

Browse files
[IPO] Remove a redundant cast (NFC) (#167832)
Idx is already of type unsigned. Identified with readability-redundant-casting.
1 parent 3c85d04 commit e6fb012

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/IPO/IROutliner.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,9 +2286,9 @@ void IROutliner::deduplicateExtractedSections(
22862286
// Create a set of BasicBlocks, one for each return block, to hold the
22872287
// needed store instructions.
22882288
DenseMap<Value *, BasicBlock *> NewBBs;
2289-
createAndInsertBasicBlocks(
2290-
CurrentGroup.EndBBs, NewBBs, CurrentGroup.OutlinedFunction,
2291-
"output_block_" + Twine(static_cast<unsigned>(Idx)));
2289+
createAndInsertBasicBlocks(CurrentGroup.EndBBs, NewBBs,
2290+
CurrentGroup.OutlinedFunction,
2291+
"output_block_" + Twine(Idx));
22922292
replaceArgumentUses(*CurrentOS, NewBBs, OutputMappings);
22932293
alignOutputBlockWithAggFunc(CurrentGroup, *CurrentOS, NewBBs,
22942294
CurrentGroup.EndBBs, OutputMappings,

0 commit comments

Comments
 (0)