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 f21c2fa commit d224a03Copy full SHA for d224a03
llvm/include/llvm/Analysis/ScalarEvolution.h
@@ -1656,9 +1656,7 @@ class ScalarEvolution {
1656
DenseMap<const SCEV *, ConstantRange> &Cache =
1657
Hint == HINT_RANGE_UNSIGNED ? UnsignedRanges : SignedRanges;
1658
1659
- auto Pair = Cache.try_emplace(S, std::move(CR));
1660
- if (!Pair.second)
1661
- Pair.first->second = std::move(CR);
+ auto Pair = Cache.insert_or_assign(S, std::move(CR));
1662
return Pair.first->second;
1663
}
1664
0 commit comments