Skip to content

Commit 8819267

Browse files
[InstCombine] Simplify code with SmallMapVector::operator[] (NFC) (#113022)
1 parent 10f6d01 commit 8819267

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,7 @@ bool InstCombinerImpl::foldAllocaCmp(AllocaInst *Alloca) {
870870
if (ICmp && ICmp->isEquality() && getUnderlyingObject(*U) == Alloca) {
871871
// Collect equality icmps of the alloca, and don't treat them as
872872
// captures.
873-
auto Res = ICmps.insert({ICmp, 0});
874-
Res.first->second |= 1u << U->getOperandNo();
873+
ICmps[ICmp] |= 1u << U->getOperandNo();
875874
return false;
876875
}
877876

0 commit comments

Comments
 (0)