Skip to content

Commit c9a1cff

Browse files
[Analysis] Simplify code with DenseMap::operator[] (NFC) (#112082)
1 parent 571354e commit c9a1cff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Analysis/AssumptionCache.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ AssumptionCache::getOrInsertAffectedValues(Value *V) {
5050
if (AVI != AffectedValues.end())
5151
return AVI->second;
5252

53-
auto AVIP = AffectedValues.insert(
54-
{AffectedValueCallbackVH(V, this), SmallVector<ResultElem, 1>()});
55-
return AVIP.first->second;
53+
return AffectedValues[AffectedValueCallbackVH(V, this)];
5654
}
5755

5856
static void

0 commit comments

Comments
 (0)