We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10f6d01 commit 8819267Copy full SHA for 8819267
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -870,8 +870,7 @@ bool InstCombinerImpl::foldAllocaCmp(AllocaInst *Alloca) {
870
if (ICmp && ICmp->isEquality() && getUnderlyingObject(*U) == Alloca) {
871
// Collect equality icmps of the alloca, and don't treat them as
872
// captures.
873
- auto Res = ICmps.insert({ICmp, 0});
874
- Res.first->second |= 1u << U->getOperandNo();
+ ICmps[ICmp] |= 1u << U->getOperandNo();
875
return false;
876
}
877
0 commit comments