Skip to content

Commit 665dd23

Browse files
[Utils] Simplify code with DenseMap::operator[] (NFC) (#114932)
1 parent 8b8778b commit 665dd23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/LoopUnroll.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI,
523523
if (!BI)
524524
continue;
525525

526-
ExitInfo &Info = ExitInfos.try_emplace(ExitingBlock).first->second;
526+
ExitInfo &Info = ExitInfos[ExitingBlock];
527527
Info.TripCount = SE->getSmallConstantTripCount(L, ExitingBlock);
528528
Info.TripMultiple = SE->getSmallConstantTripMultiple(L, ExitingBlock);
529529
if (Info.TripCount != 0) {

0 commit comments

Comments
 (0)