Skip to content

Commit 937e506

Browse files
[IPO] Simplify code with DenseMap::operator[] (NFC) (llvm#115261)
1 parent c714f92 commit 937e506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/Internalize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void InternalizePass::checkComdat(
176176
if (!C)
177177
return;
178178

179-
ComdatInfo &Info = ComdatMap.try_emplace(C).first->second;
179+
ComdatInfo &Info = ComdatMap[C];
180180
++Info.Size;
181181
if (shouldPreserveGV(GV))
182182
Info.External = true;

0 commit comments

Comments
 (0)