From 7f62bbe35b3e5b9159f1609a94731586e32c45be Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 12 Nov 2025 21:54:39 -0800 Subject: [PATCH] [IPO] Remove a redundant cast (NFC) Idx is already of type unsigned. Identified with readability-redundant-casting. --- llvm/lib/Transforms/IPO/IROutliner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/IPO/IROutliner.cpp b/llvm/lib/Transforms/IPO/IROutliner.cpp index fdf0c3ac8007d..e6ddc8029ce7b 100644 --- a/llvm/lib/Transforms/IPO/IROutliner.cpp +++ b/llvm/lib/Transforms/IPO/IROutliner.cpp @@ -2286,9 +2286,9 @@ void IROutliner::deduplicateExtractedSections( // Create a set of BasicBlocks, one for each return block, to hold the // needed store instructions. DenseMap NewBBs; - createAndInsertBasicBlocks( - CurrentGroup.EndBBs, NewBBs, CurrentGroup.OutlinedFunction, - "output_block_" + Twine(static_cast(Idx))); + createAndInsertBasicBlocks(CurrentGroup.EndBBs, NewBBs, + CurrentGroup.OutlinedFunction, + "output_block_" + Twine(Idx)); replaceArgumentUses(*CurrentOS, NewBBs, OutputMappings); alignOutputBlockWithAggFunc(CurrentGroup, *CurrentOS, NewBBs, CurrentGroup.EndBBs, OutputMappings,